-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
89 lines (78 loc) · 1.58 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
[tox]
minversion = 3.23.0
isolated_build = true
envlist = py{37,38,39,310,311}, pypy{37,38,39}, lint, typing, coverage
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint, typing
3.12: py312
pypy-3.7: pypy37
pypy-3.8: pypy38
pypy-3.9: pypy39
[testenv]
deps =
pytest >= 6.1
pytest-cov >= 2.11.1
coverage >= 7.0.2
setenv =
COVERAGE_FILE=.coverage.{envname}
commands =
pytest --cov=dataslots --cov-fail-under=100 --cov-report=term-missing --cov-config=tox.ini {posargs:-vv}
[testenv:lint]
basepython = python3.11
deps =
{[testenv]deps}
flake8
pyroma
commands =
flake8 --max-line-length 119 src tests
pyroma .
[testenv:typing]
basepython = python3.11
deps =
{[testenv]deps}
mypy>=1.1.1
pyright
commands =
# test_descriptor: https://github.com/python/mypy/issues/13856
mypy src tests --exclude tests/test_descriptor.py --check-untyped-defs
pyright src tests
[testenv:coverage]
setenv =
COVERAGE_FILE=.coverage
skip_install = true
depends = py{37,38,39,310,311}, pypy{37,38,39}
deps =
coverage >= 7.0.2
commands =
coverage combine
coverage xml -i
[testenv:dev]
basepython = python3.11
deps =
{[testenv:lint]deps}
{[testenv:typing]deps}
usedevelop = true
envdir = venv
commands =
[testenv:build]
skip_install = true
deps =
build
commands =
python -m build --outdir dist/ .
[coverage:run]
branch = true
[coverage:paths]
source =
src/
.tox/**/site-packages/
[coverage:report]
exclude_lines =
@abstractmethod
@overload
except ImportError