Commit | Line | Data |
---|---|---|
e4a45a26 | 1 | [tox] |
c4c46063 | 2 | minversion = 3.18 |
f4286907 | 3 | isolated_build = true |
2b8fd176 | 4 | envlist = tests |
e4a45a26 | 5 | skipsdist = True |
e4a45a26 MJ |
6 | |
7 | [testenv] | |
c4c46063 MJ |
8 | allowlist_externals = poetry |
9 | passenv = | |
23b946a9 OD |
10 | CC |
11 | C_INCLUDE_PATH | |
12 | LIBRARY_PATH | |
c4c46063 MJ |
13 | TERM |
14 | TERMINFO | |
2b8fd176 PP |
15 | |
16 | [testenv:tests] | |
e4a45a26 | 17 | changedir = tests |
f4286907 PP |
18 | commands = |
19 | poetry install -v | |
af01d03f | 20 | poetry run py.test -v . |
e4a45a26 | 21 | |
4d112ec8 | 22 | [testenv:flake8] |
37e91823 PP |
23 | commands = |
24 | poetry install -v | |
25 | poetry run flake8 barectf | |
e4a45a26 MJ |
26 | |
27 | [flake8] | |
28 | # E123, E125 skipped as they are invalid PEP-8. | |
2b8fd176 | 29 | # also ignore E501 because barectf has very long lines |
e4a45a26 | 30 | show-source = True |
2b8fd176 | 31 | ignore = E123,E125,E501 |
e4a45a26 | 32 | builtins = _ |
7dde2a1c | 33 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,templates.py |
e4a45a26 | 34 | |
c51a558f | 35 | [testenv:pylint] |
f4286907 PP |
36 | commands = |
37 | poetry install -v | |
c51a558f | 38 | poetry run pylint -f colorized -d all -e E,W -d W0212,W1618,W0622,W0201,W0703 barectf |
61ea6662 PP |
39 | |
40 | [testenv:mypy] | |
41 | commands = | |
42 | poetry install -v | |
43 | poetry run mypy barectf |