Add new tox env: flake8
This commit is contained in:
@@ -18,6 +18,7 @@ env:
|
||||
- TOX_ENV=system-tests
|
||||
- TOX_ENV=system-tests3
|
||||
- TOX_ENV=gae
|
||||
- TOX_ENV=flake8
|
||||
global:
|
||||
- GAE_PYTHONPATH=${HOME}/.cache/google_appengine
|
||||
cache:
|
||||
|
||||
17
tox.ini
17
tox.ini
@@ -154,3 +154,20 @@ commands =
|
||||
deps =
|
||||
pycrypto>=2.6
|
||||
passenv = {[testenv:system-tests]passenv}
|
||||
|
||||
[testenv:flake8]
|
||||
commands = flake8 {posargs}
|
||||
deps = flake8-putty
|
||||
|
||||
[flake8]
|
||||
exclude = .tox,.git,./*.egg,build,
|
||||
putty-ignore =
|
||||
# E402 module level import not at top of file
|
||||
# These files have needed configurations defined before import
|
||||
docs/conf.py : E402
|
||||
tests/contrib/test_appengine.py : E402
|
||||
tests/contrib/test_django_orm.py : E402
|
||||
# E501 line too long
|
||||
# Ignore lines over 80 chars that include "http:" or "https:"
|
||||
/http:/ : E501
|
||||
/https:/ : E501
|
||||
|
||||
Reference in New Issue
Block a user