From 8eb3aa2f955dd4ad31aeb3cb1e43c783aaebb85a Mon Sep 17 00:00:00 2001 From: Pat Ferate Date: Fri, 8 Jul 2016 13:30:17 -0700 Subject: [PATCH] Add new tox env: flake8 --- .travis.yml | 1 + tox.ini | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.travis.yml b/.travis.yml index c66632c..4f1272f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/tox.ini b/tox.ini index eba723c..ea58432 100644 --- a/tox.ini +++ b/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