Update version for Aluminium SR3
[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:coala]
11 basepython = python3
12 deps =
13     coala==0.11
14     coala-bears==0.11
15     pygments~=2.3.1
16     # Requests 2.16 breaks dependencies
17     requests<2.16
18 commands =
19     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
20     coala --non-interactive
21
22 [testenv:docs]
23 deps = -rdocs/requirements.txt
24 commands =
25     sphinx-build -W -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
26     echo "Generated docs available in {toxinidir}/docs/_build/html"
27 whitelist_externals = echo
28
29 [testenv:docs-linkcheck]
30 deps = -rdocs/requirements.txt
31 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
32
33 [testenv:pep8]
34 deps =
35     flake8
36 commands = flake8
37
38 [flake8]
39 show-source = True
40 max-line-length = 120
41 # - Select E121, E123, E126, E226, E241, E242 and E704 which are turned OFF
42 #   by default but represent guidelines accepted by us.
43 # - Do not select E133 because it is incompatible with E123 which was
44 #   selected instead.
45 # - It turns out that now all checks except E133 are enabled so the select
46 #   can be simplified to be just "E,W". However a new version could change
47 #   that (select E133 instead of E123) but that should be caught by the
48 #   verify job.
49 select = E,W
50 exclude =
51     .git,
52     .tox,
53     docs/conf.py