Add new tox env: flake8

This commit is contained in:
Pat Ferate
2016-07-08 13:30:17 -07:00
parent 5ef8bb0950
commit 8eb3aa2f95
2 changed files with 18 additions and 0 deletions

View File

@@ -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
View File

@@ -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