-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
49 lines (44 loc) · 903 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
{py37,py38,py39,py310}
coverage
[tox:.package]
basepython = python3
[testenv]
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
usedevelop = false
deps =
pytest<7.3
pytest-cov<4.1
commands =
{posargs:pytest -vvv --cov tests}
[testenv:lint]
deps =
pre-commit<2.21
pylint<2.16
pytest<7.3
mypy
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 =
{py37,py38,py39,py310}
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage