Commit | Line | Data |
---|---|---|
e4a45a26 | 1 | [tox] |
f4286907 PP |
2 | minversion = 3.3 |
3 | isolated_build = true | |
2b8fd176 | 4 | envlist = tests |
e4a45a26 | 5 | skipsdist = True |
e4a45a26 MJ |
6 | |
7 | [testenv] | |
f4286907 PP |
8 | whitelist_externals = poetry |
9 | passenv = TERM TERMINFO | |
2b8fd176 PP |
10 | |
11 | [testenv:tests] | |
e4a45a26 | 12 | changedir = tests |
f4286907 PP |
13 | commands = |
14 | poetry install -v | |
15 | poetry run bash ./test.bash -t | |
e4a45a26 | 16 | |
4d112ec8 | 17 | [testenv:flake8] |
f4286907 | 18 | deps = flake8 >= 2.5 |
5f33fcf5 | 19 | commands = flake8 barectf |
e4a45a26 MJ |
20 | |
21 | [flake8] | |
22 | # E123, E125 skipped as they are invalid PEP-8. | |
2b8fd176 | 23 | # also ignore E501 because barectf has very long lines |
e4a45a26 | 24 | show-source = True |
2b8fd176 | 25 | ignore = E123,E125,E501 |
e4a45a26 | 26 | builtins = _ |
7dde2a1c | 27 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,templates.py |
e4a45a26 | 28 | |
c51a558f | 29 | [testenv:pylint] |
e4a45a26 | 30 | deps = pylint >= 1.6 |
f4286907 PP |
31 | commands = |
32 | poetry install -v | |
c51a558f | 33 | poetry run pylint -f colorized -d all -e E,W -d W0212,W1618,W0622,W0201,W0703 barectf |