-
Notifications
You must be signed in to change notification settings - Fork 26
/
tox.ini
44 lines (37 loc) · 971 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[tox]
minversion = 1.6
envlist =
docs
docs-linkcheck
pre-commit
skipsdist = true
[testenv:docs]
deps = -rdocs/requirements.txt
commands =
sphinx-build -W --keep-going -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
[testenv:pre-commit-install]
basepython = python3
deps = pre-commit
commands =
pre-commit install
pre-commit install --hook-type commit-msg
[testenv:pre-commit-uninstall]
basepython = python3
deps = pre-commit
commands =
pre-commit uninstall
pre-commit uninstall --hook-type commit-msg
[testenv:pre-commit-autoupdate]
basepython = python3
deps = pre-commit
commands =
pre-commit autoupdate
[testenv:pre-commit]
basepython = python3
deps = pre-commit
passenv = HOME
commands =
pre-commit run --all-files --show-diff-on-failure