-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
43 lines (36 loc) · 776 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
[tox]
minversion = 3.8.0
envlist = py310, mypy, flake8
isolated_build = true
[gh-actions]
python =
3.10: py310, mypy, flake8
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir} --cov --cov-append --cov-report=term-missing
[testenv:mypy]
basepython = python3.10
deps =
-r{toxinidir}/requirements_dev.txt
commands = mypy --install-types --non-interactive src
[testenv:flake8]
basepython = python3.10
deps = flake8
commands = flake8 src test
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[coverage:report]
exclude_lines =
pragma: no cover