aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini18
1 files changed, 12 insertions, 6 deletions
diff --git a/tox.ini b/tox.ini
index 45d7f00..9be38dd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,9 +22,15 @@ setenv=
commands=py.test {env:COVERAGE:} {posargs}
-[flake8]
-
-show-source = True
-ignore = E711,E712,E721,D,N
-# F841,F811,F401
-exclude=.venv,.git,.tox,dist,doc,*egg,build
+# thanks to https://julien.danjou.info/the-best-flake8-extensions/
+[testenv:pep8]
+basepython = python3.7
+deps=
+ flake8
+ flake8-import-order
+ flake8-builtins
+ flake8-docstrings
+ flake8-rst-docstrings
+ # used by flake8-rst-docstrings
+ pygments
+commands = flake8 ./mako/ ./test/ setup.py --exclude test/templates,test/foo