-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
62 lines (55 loc) · 1.13 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
[gh]
python =
3.12 = py312, gh-cov-report
3.11 = py311, lint, type, gh-cov-report
3.10 = py310, gh-cov-report
3.9 = py39, gh-cov-report
3.8 = py38, gh-cov-report
[tox]
skipsdist = true
isolated_build = true
envlist = clean, py{38, 39, 310, 311, 312}, lint, type, cov-report
[testenv]
description = run tests
deps =
-r requirements-test.txt
commands =
coverage run -m pytest
[testenv:lint]
description = run linters
skip_install = true
deps =
black >= 24.3
flake8 >= 5.0.4
commands =
black {posargs:.}
flake8
[testenv:type]
description = run type checks
skip_install = true
deps =
mypy > 0.971
commands =
mypy
[testenv:cov-report]
depends = py{38, 39, 310, 311, 312}
description = report coverage
skip_install = true
deps = coverage[toml]
commands =
coverage combine
coverage report
coverage html
[testenv:gh-cov-report]
depends = py{38, 39, 310, 311, 312}
description = combine coverage
skip_install = true
deps = coverage[toml]
commands =
coverage combine
coverage report
coverage xml
[testenv:clean]
deps = coverage[toml]
skip_install = true
commands = coverage erase