Commit 3621d53d authored by Michal Čihař's avatar Michal Čihař

Run pyflakes in lint mode as well

We exclude some files from it as there is no way to make them compliant:

- __init__.py need to import test/model classes for Django to discover
  them
- the settings modules need to share most of the settings
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b475986d
...@@ -45,6 +45,7 @@ script: ...@@ -45,6 +45,7 @@ script:
- if [[ -z "$DO_LINT" ]] ; then coverage run --source=. ./manage.py test --settings weblate.settings_test $TRAVIS_RUN_TESTS ; fi - if [[ -z "$DO_LINT" ]] ; then coverage run --source=. ./manage.py test --settings weblate.settings_test $TRAVIS_RUN_TESTS ; fi
- if [[ -n "$DO_LINT" ]] ; then pep8 --exclude south_migrations,migrations weblate ; fi - if [[ -n "$DO_LINT" ]] ; then pep8 --exclude south_migrations,migrations weblate ; fi
- if [[ -n "$DO_LINT" ]] ; then pylint --reports=n --rcfile=pylint.rc weblate ; fi - if [[ -n "$DO_LINT" ]] ; then pylint --reports=n --rcfile=pylint.rc weblate ; fi
- if [[ -n "$DO_LINT" ]] ; then pyflakes `find . -name '*.py' -not -name '__init__.py' -not -name 'settings_test_nose.py' -not -name 'settings_test.py'` ; fi
after_script: after_script:
- coveralls - coveralls
matrix: matrix:
......
pep8 pep8
coveralls coveralls
pylint pylint
pyflakes
selenium selenium
httpretty!=0.8.1 httpretty!=0.8.1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment