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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
[tox]
min_version = 4.4.0
envlist =
format
lint
coverage
py310
py311
py312
py313
py314
pypy3
[testenv:test]
description = run the distribution tests
use_develop = true
skip_install = false
constrain_package_deps = true
commands =
pytest run_tests.py
extras =
test
[testenv:format]
description = automatically reformat code
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a pyupgrade
pre-commit run -a isort
pre-commit run -a black
[testenv:lint]
description = run linters that will help improve the code style
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a
[testenv:coverage]
description = get a test coverage report
use_develop = true
skip_install = false
deps =
pytest-cov
coverage
commands =
pytest run_tests.py --cov --cov-report term-missing
extras =
test
|