summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini15
1 files changed, 14 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 63fe6f8..5cf714b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist=py3,mypy,black,black-run
+envlist=py3,mypy,flake8,black,black-run
[testenv]
deps =
@@ -33,3 +33,16 @@ skip_install = true
deps =
black >= 19.10b0
commands = black .
+
+[testenv:flake8]
+skip_install = true
+deps =
+ flake8 >= 3.6
+commands = flake8
+
+[flake8]
+basepython = python3
+format = pylint
+ignore = W503, E203, E731, E231
+max-line-length = 100
+exclude = docs/*,.tox/*,./test/data/*