summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tox.ini18
1 files changed, 18 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..3b6f4d7
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+envlist = py36,py37,pypy3,pre-commit
+
+[testenv]
+deps = -rrequirements-dev.txt
+commands =
+ coverage erase
+ coverage run -m pytest {posargs:tests}
+ coverage report --fail-under 100
+ pre-commit install
+
+[testenv:pre-commit]
+skip_install = true
+deps = pre-commit
+commands = pre-commit run --all-files --show-diff-on-failure
+
+[pep8]
+ignore = E265,E501,W504