[tox]
minversion = 1.6.0
-envlist = docs
+envlist = coala,docs,pre-commit
skipsdist = true
+[testenv:coala]
+basepython = python3
+deps =
+ coala==0.11.0
+ coala-bears==0.11.0
+ detox~=0.18
+ pygments~=2.3.1
+ requests~=2.21.0
+commands =
+ coala --non-interactive
+
[testenv:docs]
deps = -rdocs/requirements.txt
commands =
- sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
- echo "Generated docs available in {envtmpdir}/html"
-whitelist_externals = echo
+ sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+
+[testenv:pre-commit]
+basepython = python3
+deps = pre-commit
+commands =
+ pre-commit install --hook-type commit-msg
+ pre-commit run --all-files