Update release downloads
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 90be6828eabbb8dbc49316526ea4c078cc69ff57..7774118d9d1b1e5d7390021c48a9768c87dd5145 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,15 +1,22 @@
 [tox]
 minversion = 1.6
-envlist = docs,docs-linkcheck
+envlist = pre-commit,docs,docs-linkcheck
 skipsdist = true
 
 [testenv:docs]
-deps = -rrequirements.txt
+basepython = python3
+deps = -rdocs/requirements.txt
 commands =
-    sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
-    echo "Generated docs available in {toxinidir}/docs/_build/html"
-whitelist_externals = echo
+    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