Merge "Update .gitreview for stable/neon" into stable/neon
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 545c22c9fa2fbd13face772f7643ff3c92ddddb5..7987050ef04a868704cca16d1258f074bec4da87 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,26 +1,20 @@
 [tox]
 minversion = 1.6
-envlist = coala,docs
+envlist = pre-commit,docs
 skipsdist = true
 
-[testenv:coala]
-basepython = python3
-deps =
-    coala==0.11
-    coala-bears==0.11
-    # Requests 2.16 breaks coala dependency on chardet
-    requests<2.16
-    nodeenv==1.1.2
-commands =
-    nodeenv -p
-    npm install --global remark-cli remark-lint
-    coala --non-interactive
-
 [testenv:docs]
 deps = -rdocs/requirements.txt
 commands =
-    sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+    sphinx-build -j auto -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
 deps = -rdocs/requirements.txt
-commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+commands = sphinx-build -j auto -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
+[testenv:pre-commit]
+deps = pre-commit
+commands =
+    pre-commit install
+    pre-commit install --hook-type commit-msg
+    pre-commit run --all-files