/
tox.ini
105 lines (74 loc) · 1.36 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[tox]
envlist =
py37,
py38,
py39,
py310,
docs,
pypy3,
lint,
toxworkdir = /tmp/tox/pytest-pyright
[testenv]
deps =
pytest==7.2.0
syrupy==3.0.5
coverage==6.5.0
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
commands =
coverage run -m pytest {posargs:tests}
passenv =
PYRIGHT_PYTHON_DEBUG
[testenv:docs]
deps =
pytest>=3.0
coverage==5.3.1
commands =
coverage run -m pytest --pyright-dir=docs/src docs/src
[testenv:lint]
ignore_errors = true
deps =
flake8
pyright
{[testenv]deps}
commands =
flake8 setup.py src/pytest_pyright tests
pyright
[testenv:setup]
skip_install = True
deps =
coverage==5.3.1
commands =
coverage erase
[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
[flake8]
per-file-ignores =
# imported but unused
__init__.py: F401
max-line-length = 100
[coverage:run]
branch = True
concurrency = multiprocessing
source =
tests
pytest_pyright
[coverage:report]
exclude_lines =
pragma: no cover
@pytest.mark.skip\(?
if TYPE_CHECKING
\.\.\.
[coverage:paths]
pytest_pyright =
src/pytest_pyright
*/**/pytest_pyright