changedir = tests
commands =
poetry install -v
- poetry run bash ./test.bash -t
+ poetry run py.test -v .
[testenv:flake8]
-deps = flake8 >= 2.5
-commands = flake8 barectf
+commands =
+ poetry install -v
+ poetry run flake8 barectf
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,templates.py
-[testenv:pylint-errors]
-deps = pylint >= 1.6
-commands =
- poetry install -v
- poetry run pylint -f colorized -E barectf
-
-[testenv:pylint-warnings]
-deps = pylint >= 1.6
+[testenv:pylint]
commands =
poetry install -v
- poetry run pylint -f colorized -d all -e W -r n barectf
+ poetry run pylint -f colorized -d all -e E,W -d W0212,W1618,W0622,W0201,W0703 barectf
-[testenv:pylint-full]
-deps = pylint >= 1.6
+[testenv:mypy]
commands =
poetry install -v
- poetry run pylint -f colorized --disable=all -e R,E,W barectf
+ poetry run mypy barectf