Update release downloads
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index d44193016fea575b7f028834e5351d667c4b61cb..7774118d9d1b1e5d7390021c48a9768c87dd5145 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,22 @@
 [tox]
 minversion = 1.6
-envlist = docs,docs-linkcheck
+envlist = pre-commit,docs,docs-linkcheck
 skipsdist = true
 
 [testenv:docs]
-deps = -rrequirements.txt
-commands = sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+basepython = python3
+deps = -rdocs/requirements.txt
+commands =
+    sphinx-build -j auto -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
-deps = -rrequirements.txt
+basepython = python3
+deps = -rdocs/requirements.txt
 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
+[testenv:pre-commit]
+basepython = python3
+deps = pre-commit
+commands =
+    pre-commit run --all-files --show-diff-on-failure
+    pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG