Fix some dead links
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 8ea4ee5b132235515b91bf8559d371dd9d33fefc..8eb8a9cacdf3f577a7495309a62c17a41fd5ee2e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,31 @@
 [tox]
 minversion = 1.6
-envlist = docs,docs-linkcheck
+envlist = pre-commit,docs,docs-linkcheck
 skipsdist = true
 
 [testenv:docs]
-deps = sphinx
-commands = sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+basepython = python3
+deps = -rdocs/requirements.txt
+commands =
+    sphinx-build -q -j auto -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
-deps = sphinx
-commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck
+basepython = python3
+deps = -rdocs/requirements.txt
+commands = sphinx-build -q -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
+
+[testenv:spelling]
+basepython = python3
+deps =
+    -rdocs/requirements.txt
+    sphinxcontrib-spelling
+    PyEnchant
+commands = sphinx-build -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling
+