43 lines
685 B
INI
43 lines
685 B
INI
[tox]
|
|
envlist = py311,py312
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
-rrequirements.txt
|
|
whitelist_externals =
|
|
cargo
|
|
rust2rpm-helper
|
|
commands =
|
|
pytest -v {posargs}
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
[testenv:coverage]
|
|
deps =
|
|
pytest
|
|
coverage
|
|
-rrequirements.txt
|
|
whitelist_externals =
|
|
cargo
|
|
rust2rpm-helper
|
|
commands =
|
|
coverage run --branch -m pytest -v {posargs}
|
|
coverage html
|
|
coverage report
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
[testenv:mypy]
|
|
deps =
|
|
mypy
|
|
pytest
|
|
types-jsonschema
|
|
types-requests
|
|
types-tqdm
|
|
-rrequirements.txt
|
|
commands =
|
|
mypy -p rust2rpm {posargs}
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|