-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (35 loc) · 785 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
[flake8]
max-line-length = 127
max-complexity = 10
pytest-parametrize-names-type = csv
ignore = E203
[testenv]
description = Run the tests with {basepython}
deps =
.[dev]
commands =
pytest -s -v {posargs}
[testenv:coverage]
description = Run the tests with coverage
base_python = py311
usedevelop = true
deps =
{[testenv]deps}
coverage
pytest_cov
commands =
python3 -m pytest --cov=src --cov-report=term-missing --cov-fail-under 10 --cov-report html:htmlcov --cov-report xml {posargs}
[testenv:lint]
description = Check the code style
deps =
flake8
commands =
python3 -m flake8 .
[testenv:type]
description = Run type checking
base_python = py311
deps =
{[testenv]deps}
mypy==1.9.0
commands =
python3 -m mypy src --check-untyped-defs