Move libdocs script to integration/test
[integration/test.git] / tox.ini
1 [tox]
2 minversion = 1.6.0
3 envlist = coala,pep8,tidy
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     requests==2.15.1
13 commands =
14     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
15     coala --non-interactive
16
17 [testenv:docs]
18 deps = -rdocs/requirements.txt
19 commands =
20     ./build-integration-robot-libdoc.sh
21     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
22     echo "Generated docs available in {toxinidir}/docs/_build/html"
23 whitelist_externals = echo
24
25 [testenv:tidy]
26 deps = robotframework
27 commands = python ./tools/robot_check/tidytool.py diff csit tools
28
29 [testenv:pep8]
30 deps =
31     flake8
32 commands = flake8
33
34 [flake8]
35 show-source = True
36 max-line-length = 120
37
38 # # - Select E121, E123, E126, E226, E241, E242 and E704 which are turned OFF
39 # #   by default but represent guidelines accepted by us.
40 # # - Do not select E133 because it is incompatible with E123 which was
41 # #   selected instead.
42 # - It turns out that now all checks except E133 are enabled so the select
43 #   can be simplified to be just "E,W". However a new version could change
44 #   that (select E133 instead of E123) but that should be caught by the
45 #   verify job.
46 select = E,W
47 ignore = E722 # as of aprox 10/25 some update/change has caused existing code to fail on E722
48 exclude =
49     .git,
50     .tox,
51     docs/conf.py