[tox]
minversion = 1.6
-envlist = coala,docs
+envlist = pre-commit,docs,docs-linkcheck
skipsdist = true
-[testenv:coala]
-basepython = python3
-deps =
- coala==0.11
- coala-bears==0.11
- # Requests 2.16 breaks coala dependency on chardet
- requests<2.16
- nodeenv==1.1.2
-commands =
- nodeenv -p
- npm install --global remark-cli remark-lint
- coala --non-interactive
-
[testenv:docs]
+basepython = python3
deps = -rdocs/requirements.txt
commands =
- sphinx-build -j 4 -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+ sphinx-build -j auto -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
[testenv:docs-linkcheck]
+basepython = python3
deps = -rdocs/requirements.txt
-commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+commands = sphinx-build -j auto -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