ba8744fbdc7c823f47a06fa891f3ba07b83a89a9
[integration/distribution.git] / tox.ini
1 [tox]
2 minversion = 1.6.0
3 envlist =
4     coala,
5     docs,
6     docs-linkcheck,
7     pep8
8 skipsdist = true
9
10 [testenv:docs]
11 allowlist_externals = echo
12 deps = -rdocs/requirements.txt
13 commands =
14     sphinx-build -W -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
15     echo "Generated docs available in {toxinidir}/docs/_build/html"
16 whitelist_externals = echo
17
18 [testenv:docs-linkcheck]
19 deps = -rdocs/requirements.txt
20 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
21
22 [testenv:pep8]
23 deps =
24     flake8
25 commands = flake8
26
27 [flake8]
28 show-source = True
29 max-line-length = 120
30 # - Select E121, E123, E126, E226, E241, E242 and E704 which are turned OFF
31 #   by default but represent guidelines accepted by us.
32 # - Do not select E133 because it is incompatible with E123 which was
33 #   selected instead.
34 # - It turns out that now all checks except E133 are enabled so the select
35 #   can be simplified to be just "E,W". However a new version could change
36 #   that (select E133 instead of E123) but that should be caught by the
37 #   verify job.
38 select = E,W
39 exclude =
40     .git,
41     .tox,
42     docs/conf.py