1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
[tox]
isolated_build = true
envlist = lint, py3{7,8,9,10,11}-cov, htmlcov
[testenv]
whitelist_externals = poetry
commands =
poetry install
cov: poetry run coverage run --parallel-mode -m pytest {posargs}
!cov: poetry run pytest {posargs}
[testenv:htmlcov]
basepython = python3
deps =
coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
[testenv:lint]
whitelist_externals = poetry
commands =
poetry install --no-root
poetry run black --check --diff src tests
poetry run isort --check-only --diff src tests
poetry run mypy src tests
poetry run pylint src tests
|