Activate coala checking of comit messages
[integration/distribution.git] / tox.ini
1 [tox]
2 minversion = 1.6.0
3 envlist = pep8,coala
4 skipsdist = true
5
6 [testenv:coala]
7 basepython = python3
8 deps =
9     coala
10     coala-bears
11 commands =
12     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
13     coala --non-interactive
14
15 [testenv:pep8]
16 deps =
17     flake8
18 commands = flake8
19
20 [flake8]
21 show-source = True
22 max-line-length = 120
23 # - Select E121, E123, E126, E226, E241, E242 and E704 which are turned OFF
24 #   by default but represent guidelines accepted by us.
25 # - Do not select E133 because it is incompatible with E123 which was
26 #   selected instead.
27 # - It turns out that now all checks except E133 are enabled so the select
28 #   can be simplified to be just "E,W". However a new version could change
29 #   that (select E133 instead of E123) but that should be caught by the
30 #   verify job.
31 select = E,W
32 exclude =
33     .git,
34     .tox,
35     docs/conf.py