diff --git a/tox.ini b/tox.ini index 1943025..7944deb 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = {py27,py34,py35,py36,pypy} +envlist = {py27,py34,py35,py36,pypy,flake8} skip_missing_interpreters = True minversion = 2.4.0 @@ -36,3 +36,12 @@ commands = wormhole --version coverage run --branch -m wormhole.test.run_trial {posargs:wormhole} coverage xml + +[testenv:flake8] +deps = flake8 +commands = flake8 src/wormhole + +[flake8] +ignore = E741 +exclude = .git,__pycache__,docs/source/conf.py,old,build,dist +max-complexity = 10 \ No newline at end of file