2017-02-05 13:59:18 +00:00
|
|
|
[tox]
|
2023-03-18 19:15:54 +00:00
|
|
|
envlist = py310,py311,py312
|
2017-02-05 13:59:18 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
-rrequirements.txt
|
|
|
|
whitelist_externals =
|
|
|
|
cargo
|
2022-07-22 13:48:14 +00:00
|
|
|
commands =
|
2023-04-01 13:59:15 +00:00
|
|
|
pytest -v {posargs}
|
2022-07-22 13:48:14 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
2023-02-15 19:24:06 +00:00
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
coverage
|
|
|
|
-rrequirements.txt
|
|
|
|
whitelist_externals =
|
|
|
|
cargo
|
|
|
|
commands =
|
|
|
|
coverage run --branch -m pytest -v {posargs}
|
|
|
|
coverage html
|
|
|
|
coverage report
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
deps =
|
|
|
|
mypy
|
|
|
|
pytest
|
|
|
|
-rrequirements.txt
|
|
|
|
commands =
|
|
|
|
mypy -p rust2rpm {posargs}
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|