Fix some dead links
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index ba046a16d88bf33ff970123e44f9e8d6fa7374c0..8eb8a9cacdf3f577a7495309a62c17a41fd5ee2e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,28 +1,31 @@
 [tox]
 minversion = 1.6
-envlist = coala,docs
+envlist = pre-commit,docs,docs-linkcheck
 skipsdist = true
 
-[testenv:coala]
+[testenv:docs]
 basepython = python3
-deps =
-    coala==0.11
-    coala-bears==0.11
-    # Requests 2.16 breaks coala dependency on chardet
-    requests<2.16
-    nodeenv
+deps = -rdocs/requirements.txt
 commands =
-    nodeenv -p
-    npm install --global remark-cli remark-lint
-    coala --non-interactive
+    sphinx-build -q -j auto -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
-[testenv:docs]
-deps = -rrequirements.txt
+[testenv:docs-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 =
-    sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
-    echo "Generated docs available in {toxinidir}/docs/_build/html"
-whitelist_externals = echo
+    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
 
-[testenv:docs-linkcheck]
-deps = -rrequirements.txt
-commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck