exclude test files from the translatable file change count in bin/virtualenv_translate.sh.
@@ -44,10 +44,10 @@ then
done
}
- # Count the number of files searched by makemessages
+ # Count the number of relevant files searched by makemessages
# that have unstaged changes.
# https://docs.djangoproject.com/en/1.11/ref/django-admin/
- message_files_changed=$(git diff --name-only ${refs} 'TWLight/*.html' 'TWLight/*.txt' 'TWLight/*.py' | wc -l)
+ message_files_changed=$(git diff --name-only ${refs} 'TWLight/*.html' 'TWLight/*.txt' 'TWLight/*.py' ':(exclude)TWLight/tests.py' ':(exclude)TWLight/*/tests.py' | wc -l)
# Count the number of translation files changed.
translation_files_changed=$(git diff --name-only ${refs} 'locale/*.po' | wc -l)
