feat(test): init tox config
This commit is contained in:
parent
c0adb4cdfb
commit
b1a469a351
1 changed files with 44 additions and 0 deletions
44
tox.ini
Normal file
44
tox.ini
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
[tox]
|
||||||
|
requires =
|
||||||
|
tox>=4.19
|
||||||
|
env_list =
|
||||||
|
py3{8-12}-{unit}
|
||||||
|
lint
|
||||||
|
format
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps =
|
||||||
|
.
|
||||||
|
|
||||||
|
[testenv:lint]
|
||||||
|
description = run type check on code base
|
||||||
|
labels = static
|
||||||
|
deps =
|
||||||
|
mypy
|
||||||
|
commands =
|
||||||
|
mypy src tests --junit-xml test-reports/{env_name}.xml
|
||||||
|
|
||||||
|
[testenv:audit]
|
||||||
|
description = run type check on code base
|
||||||
|
labels = audit
|
||||||
|
deps =
|
||||||
|
pip-audit
|
||||||
|
commands =
|
||||||
|
pip-audit .
|
||||||
|
|
||||||
|
[testenv:format]
|
||||||
|
description = run type check on code base
|
||||||
|
labels = static
|
||||||
|
deps =
|
||||||
|
black
|
||||||
|
commands =
|
||||||
|
black --check src tests
|
||||||
|
|
||||||
|
[testenv:py3{9-13}-unit]
|
||||||
|
description = run type check on code base
|
||||||
|
labels = unit
|
||||||
|
deps =
|
||||||
|
{[testenv]deps}
|
||||||
|
pytest
|
||||||
|
commands =
|
||||||
|
pytest tests/unit --junitxml=test-reports/{env_name}.xml
|
||||||
Loading…
Add table
Add a link
Reference in a new issue