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