-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
49 lines (44 loc) · 927 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[tox]
isolated_build = true
skip_missing_interpreters = true
envlist =
clean
lint
{py39,py310,py311,py312}
coverage
[tox:.package]
basepython = python3
[testenv]
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
usedevelop = false
deps =
pytest>=8.3,<9
pytest-cov>=5,<6
commands =
{posargs:pytest -vvv --cov tests}
[testenv:lint]
deps =
pre-commit<2.21
pylint>=3.3,<4
pytest>=8,<9
mypy>=1.12,<2
commands = pre-commit run --all-files {posargs}
[testenv:coverage]
skip_install = True
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
deps =
coverage
commands =
coverage combine
coverage report {posargs:--fail-under=100}
coverage xml -o {toxinidir}/test-reports/coverage.xml
depends =
{py39,py310,py311,py312}
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage