-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
62 lines (50 loc) · 1.11 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
[tox]
min_version = 4.3.5
envlist =
coverage_erase
py{3.13, 3.12, 3.11, 3.10, 3.9, 3.8}
pypy{3.10, 3.9, 3.8}
coverage_report
labels =
update=update
[testenv]
package = wheel
wheel_build_env = build_wheel
depends =
py{3.13, 3.12, 3.11, 3.10, 3.9, 3.8}, pypy{3.10, 3.9, 3.8}: coverage_erase
deps =
coverage[toml]
pytest
pytest-randomly
commands =
coverage run -m pytest
[testenv:coverage_erase]
skip_install = true
deps = coverage[toml]
commands = coverage erase
[testenv:coverage_report]
depends =
py{3.13, 3.12, 3.11, 3.10, 3.9, 3.8}, pypy{3.10, 3.9, 3.8}
skip_install = true
deps = coverage[toml]
commands_pre =
coverage combine
coverage html --fail-under=0
commands = coverage report
[testenv:update]
description = Update tool versions
base_python = py3.12
recreate = true
skip_install = true
deps =
pre-commit
upadup
commands =
# Update pre-commit hooks and additional dependencies.
pre-commit autoupdate
upadup
# Run pre-commit immediately, but ignore its exit code.
- pre-commit run -a
[flake8]
max-line-length = 88
extend-ignore = E203