-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (44 loc) · 777 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
46
47
48
[tox]
requires =
tox>=4
env_list =
lint
type
coverage
py{36,37,38,39,310}
python3.11
[testenv]
description = run unit tests
deps =
pytest>=7
pytest-sugar
hypothesis
commands =
pytest {posargs:tests}
[testenv:lint]
description = run linters
deps =
black==22.12
pylint
pycodestyle
pydocstyle
commands =
black {posargs:.}
pylint {posargs:src}
pycodestyle {posargs:src}
pydocstyle {posargs:src}
[testenv:type]
description = run type checks
deps =
mypy>=0.991
commands =
mypy {posargs:src}
[testenv:coverage]
description = compute test coverage
deps =
hypothesis
coverage
pytest
commands =
coverage run -m pytest {posargs:tests}
coverage report --rcfile=tox.ini --fail-under=50