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
|
[tox]
isolated_build = true
envlist = py, style
[testenv]
deps =
pytest
pytest-cov
commands =
{envpython} -m pytest --cov=codetiming --cov-fail-under=100 --cov-report=term-missing
[testenv:style]
skip_install = true
deps =
black
flake8
interrogate
isort
mypy
commands =
{envpython} -m black --check --quiet codetiming/ tests/
{envpython} -m flake8 codetiming/ tests/
{envpython} -m interrogate --quiet --config=pyproject.toml
{envpython} -m isort --check codetiming/ tests/
{envpython} -m mypy --strict codetiming/
|