Commit | Line | Data |
---|---|---|
e4a45a26 MJ |
1 | [tox] |
2 | minversion = 1.9 | |
2b8fd176 | 3 | envlist = tests |
e4a45a26 MJ |
4 | skipsdist = True |
5 | toxworkdir = {env:TOXWORKDIR:.tox} | |
6 | ||
7 | [testenv] | |
8 | setenv = | |
9 | PYTHONPATH = {env:PYTHONPATH:} | |
10 | deps = -r{toxinidir}/requirements.txt | |
11 | -r{toxinidir}/test-requirements.txt | |
f800a73e | 12 | usedevelop = true |
e4a45a26 | 13 | whitelist_externals = bash |
2b8fd176 PP |
14 | |
15 | [testenv:tests] | |
e4a45a26 MJ |
16 | changedir = tests |
17 | commands = bash ./test.bash -t | |
18 | ||
19 | [testenv:pep8] | |
2b8fd176 | 20 | commands = flake8 |
e4a45a26 MJ |
21 | |
22 | [flake8] | |
23 | # E123, E125 skipped as they are invalid PEP-8. | |
2b8fd176 | 24 | # also ignore E501 because barectf has very long lines |
e4a45a26 MJ |
25 | |
26 | show-source = True | |
2b8fd176 | 27 | ignore = E123,E125,E501 |
e4a45a26 MJ |
28 | builtins = _ |
29 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build | |
30 | ||
31 | [testenv:pylint-errors] | |
32 | deps = pylint >= 1.6 | |
33 | commands = pylint -f colorized -E barectf | |
34 | ||
35 | [testenv:pylint-warnings] | |
36 | deps = pylint >= 1.6 | |
37 | commands = pylint -f colorized -d all -e W -r n barectf | |
38 | ||
39 | [testenv:pylint-full] | |
40 | deps = pylint >= 1.6 | |
41 | commands = pylint -f colorized --disable=all -e R,E,W barectf |