/
tox.ini
83 lines (60 loc) · 1.16 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
envlist =
setup,
lint,
py37,
py38,
py39,
py310,
py311,
report,
skip_missing_interpreters = true
toxworkdir = /tmp/tox/pyright-python
[testenv]
deps =
pytest==6.2.4
coverage==5.3.1
pytest-subprocess==1.1.2
setenv =
PYRIGHT_PYTHON_DEBUG = 1
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{:}.coverage.{envname}}
commands =
coverage run -m pytest {posargs}
[testenv:setup]
skip_install = True
deps =
coverage==5.3.1
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}{:}.coverage.{envname}}
commands =
coverage erase
[testenv:lint]
# run every command even if one of them fails
ignore_errors = true
deps =
{[testenv]deps}
black==22.3.0
commands =
black --check .
pyright
[testenv:report]
skip_install = true
deps =
coverage==5.3.1
setenv =
COVERAGE_FILE={toxworkdir}{:}.coverage
commands =
coverage combine
coverage html -i
coverage xml -i
coverage report -i --skip-covered
[coverage:run]
concurrency = multiprocessing
source =
tests
pyright
[coverage:report]
exclude_lines =
pragma: no cover
@pytest.mark.skip\(?
if TYPE_CHECKING