Merge "Update the rpm link for Sodium release"
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index d44193016fea575b7f028834e5351d667c4b61cb..092baf8c4fa41c5d3087e92614c54d4a4598fc52 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,23 @@
 [tox]
 minversion = 1.6
-envlist = docs,docs-linkcheck
+envlist = pre-commit,docs
 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
-commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+basepython = python3
+deps = -rdocs/requirements.txt
+commands = sphinx-build -j auto -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
+[testenv:pre-commit]
+basepython = python3
+deps = pre-commit
+commands =
+    pre-commit install
+    pre-commit install --hook-type commit-msg
+    pre-commit run --all-files