summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-03-07 09:03:16 -0800
committerDavid Lord <davidism@gmail.com>2020-03-08 08:28:21 -0700
commit30b82bfdebcc155acc1a63716ae8fd79a23f73e5 (patch)
treea9e04e174efca90a3ee8d86c0b35b7cf846af8d0 /tox.ini
parent8fe37afda8a3fe34f87c9936e72bcd02c0eb77af (diff)
downloadclick-30b82bfdebcc155acc1a63716ae8fd79a23f73e5.tar.gz
run pre-commit during tests
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 30c16da..beed51d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,7 @@
[tox]
envlist =
py{38,37,36,35,27,py3,py}
+ style
docs
skip_missing_interpreters = true
@@ -10,6 +11,11 @@ deps =
colorama
commands = pytest --tb=short --basetemp={envtmpdir} {posargs}
+[testenv:style]
+deps = pre-commit
+skip_install = true
+commands = pre-commit run --all-files --show-diff-on-failure
+
[testenv:docs]
deps = -r docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html