Update download page for Chlorine SR3
[docs.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = pre-commit,docs,docs-linkcheck,spelling
4 skipsdist = true
5
6 [testenv:docs]
7 basepython = python3
8 deps = -rdocs/requirements.txt
9 commands =
10     sphinx-build -q -j auto -W --keep-going -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
11
12 [testenv:docs-linkcheck]
13 basepython = python3
14 deps = -rdocs/requirements.txt
15 commands = sphinx-build -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
16
17 [testenv:pre-commit-install]
18 basepython = python3
19 deps = pre-commit
20 commands =
21     pre-commit install
22     pre-commit install --hook-type commit-msg
23
24 [testenv:pre-commit-uninstall]
25 basepython = python3
26 deps = pre-commit
27 commands =
28     pre-commit uninstall
29     pre-commit uninstall --hook-type commit-msg
30
31 [testenv:pre-commit-autoupdate]
32 basepython = python3
33 deps = pre-commit
34 commands =
35     pre-commit autoupdate
36
37 [testenv:pre-commit]
38 basepython = python3
39 deps = pre-commit
40 passenv = HOME
41 commands =
42     pre-commit run --all-files --show-diff-on-failure
43     pre-commit run gitlint-ci --hook-stage manual
44
45 [testenv:gitlint]
46 basepython = python3
47 deps = gitlint
48 commands =
49     gitlint
50
51 [testenv:spelling]
52 basepython = python3
53 deps =
54     -rdocs/requirements.txt
55     sphinxcontrib-spelling
56     PyEnchant
57 allowlist_externals = sh
58 commands =
59     sh -c 'command enchant>/dev/null || command enchant-2 -v>/dev/null || sudo yum -y install enchant || (echo "enchant command not found - please install it (e.g. sudo apt-get install enchant | yum install enchant )" >&2 && exit 1)'
60     sphinx-build -q -W --keep-going -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling
61