Merge "Move examples from Addendum to Setting Up chapter"
[doc.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = docs,docs-linkcheck
4 skipsdist = true
5
6 [testenv:docs]
7 basepython = python3
8 deps = -r{toxinidir}/etc/requirements.txt
9 commands =
10     sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
11     echo "Generated docs available in {toxinidir}/docs/_build/html"
12 whitelist_externals =
13     echo
14     git
15     sh
16
17 [testenv:local]
18 basepython = python3
19 deps = -r{toxinidir}/etc/requirements.txt
20 commands =
21     git submodule update --depth 100 --init
22     sphinx-build -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
23     echo "Generated docs available in {toxinidir}/docs/_build/html"
24 whitelist_externals =
25     echo
26     git
27
28 [testenv:docs-linkcheck]
29 basepython = python3
30 deps = -r{toxinidir}/etc/requirements.txt
31 commands = sphinx-build -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
32
33 [testenv:spellcheck]
34 basepython = python3
35 deps =
36     -r{toxinidir}/etc/requirements.txt
37     sphinxcontrib-spelling
38 commands =
39     sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck
40
41 [testenv:autopep8]
42 deps = autopep8
43 commands =
44     autopep8 --max-line-length 120 --in-place docs/conf.py
45
46 [testenv:pylint]
47 deps = pylint
48 commands =
49     pylint --max-line-length=120 --disable=missing-docstring --reports=y --score=y  --output-format=colorized docs/conf.py