2017-02-05 13:59:18 +00:00
|
|
|
[tox]
|
2023-10-04 09:32:35 +00:00
|
|
|
envlist = py311,py312
|
2017-02-05 13:59:18 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
pytest
|
|
|
|
-rrequirements.txt
|
|
|
|
whitelist_externals =
|
|
|
|
cargo
|
2023-10-01 22:33:44 +00:00
|
|
|
rust2rpm-helper
|
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
|
2023-10-01 22:33:44 +00:00
|
|
|
rust2rpm-helper
|
2023-02-15 19:24:06 +00:00
|
|
|
commands =
|
|
|
|
coverage run --branch -m pytest -v {posargs}
|
|
|
|
coverage html
|
|
|
|
coverage report
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
deps =
|
|
|
|
mypy
|
|
|
|
pytest
|
2023-10-06 16:02:44 +00:00
|
|
|
types-jsonschema
|
2023-10-01 23:05:42 +00:00
|
|
|
types-requests
|
|
|
|
types-tqdm
|
2023-02-15 19:24:06 +00:00
|
|
|
-rrequirements.txt
|
|
|
|
commands =
|
|
|
|
mypy -p rust2rpm {posargs}
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH = {toxinidir}
|