-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (41 loc) · 814 Bytes
/
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
[tox]
requires =
tox>=4
envlist = format, mypy, py{38, 39, 310,311}, coverage
[testenv]
description = run unit tests
deps =
pytest>=7.3.1,<8
coverage>=7.2.3,<8
commands =
coverage run -p -m --source=srtlst pytest
[testenv:coverage]
description = combine coverage results
depends = py{38, 39, 310,311}
parallel_show_output = true
basepython = python3.11
skip_install = true
deps =
coverage>=7.2.3,<8
commands =
coverage combine
coverage report -m
coverage json
[testenv:format]
description = run linters
basepython = python3.11
skip_install = true
deps =
ruff>=0.0.262,<1
black>=23.3.0,<24
commands =
ruff .
black --check .
[testenv:mypy]
description = run type-checker
basepython = python3.11
deps =
mypy>=1.2.0,<2
pytest>=7.3.1,<8
commands =
mypy .