rust2rpm/tox.ini

38 lines
580 B
INI

[tox]
envlist = py310,py311
skipsdist = True
[testenv]
deps =
pytest
-rrequirements.txt
whitelist_externals =
cargo
commands =
pytest -v
setenv =
PYTHONPATH = {toxinidir}
[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}