6a4482891809c3e435ec001e6f0c05e8fa86606d
[integration/test.git] / tox.ini
1 [tox]
2 minversion = 1.6.0
3 envlist = coala,pep8,pre-commit
4 # TODO: Include docs when it starts performing strict checks.
5 skipsdist = true
6
7 [testenv:coala]
8 basepython = python3
9 deps =
10     coala==0.11.0
11     coala-bears==0.11.0
12     pygments~=2.3.1
13     requests==2.15.1
14 commands =
15     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
16     coala --non-interactive
17
18 [testenv:docs]
19 basepython = python3
20 deps = -rdocs/requirements.txt
21 commands =
22     sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
23
24 [testenv:pre-commit]
25 basepython = python3
26 deps = pre-commit
27 commands =
28     pre-commit install
29     pre-commit run --all-files
30
31 [testenv:pep8]
32 basepython = python2
33 deps =
34     flake8~=3.5.0
35 commands = flake8
36
37 [flake8]
38 show-source = True
39 max-line-length = 120
40
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 ignore = E722 # as of aprox 10/25 some update/change has caused existing code to fail on E722
51 exclude =
52     .git,
53     .tox,
54     docs/conf.py