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 | |
af01d03f | 15 | poetry run py.test -v . |
e4a45a26 | 16 | |
4d112ec8 | 17 | [testenv:flake8] |
37e91823 PP |
18 | commands = |
19 | poetry install -v | |
20 | poetry run flake8 barectf | |
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 | 25 | show-source = True |
2b8fd176 | 26 | ignore = E123,E125,E501 |
e4a45a26 | 27 | builtins = _ |
7dde2a1c | 28 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,templates.py |
e4a45a26 | 29 | |
c51a558f | 30 | [testenv:pylint] |
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 |
61ea6662 PP |
34 | |
35 | [testenv:mypy] | |
36 | commands = | |
37 | poetry install -v | |
38 | poetry run mypy barectf |