Fix for ELAN JUNIT TCs failure
[netvirt.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 23a89bd2bfa770df5671f085826bf4fa5b7679a4..c065e39d3fb5f13f6082381ebd3d2bd693c41bb4 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,19 +1,27 @@
 [tox]
 minversion = 1.6.0
-envlist = coala,docs
+envlist = coala,docs,pre-commit
 skipsdist = true
 
 [testenv:coala]
 basepython = python3
 deps =
-    coala==0.11
-    coala-bears==0.11
-    # Requests 2.16 breaks dependencies
-    requests<2.16
+    coala==0.11.0
+    coala-bears==0.11.0
+    detox~=0.18
+    pygments~=2.3.1
+    requests~=2.21.0
 commands =
-    python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
     coala --non-interactive
 
 [testenv:docs]
-deps = sphinx
-commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+deps = -rdocs/requirements.txt
+commands =
+    sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+
+[testenv:pre-commit]
+basepython = python3
+deps = pre-commit
+commands =
+    pre-commit install --hook-type commit-msg
+    pre-commit run --all-files