-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
49 lines (45 loc) · 976 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
49
[tox]
minversion = 3.14.0
ignore_basepython_conflict = true
# list of tox tests
envlist =
lint
py310
# list of corresponding environments
[testenv]
basepython =
{lint}: {env:TOXPYTHON:python3}
{py310}: {env:TOXPYTHON:python3.10}
passenv = *
[testenv:lint]
skip_install = true
deps =
flake8>=4
flake8-docstrings
flake8-bugbear
pygments
isort
commands =
flake8 {posargs:tests src/ setup.py}
isort --verbose --check-only --diff {posargs:tests src/ setup.py}
[testenv:py310]
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
usedevelop = true
deps =
-r{toxinidir}/pymap.txt
coverage
pytest
pytest-cov
hypothesis
# erasing coverage records
commands_pre =
coverage erase
# executing pytest
commands =
pytest --cov --cov-report=term-missing --cov-append --cov-config=.coveragerc --hypothesis-show-statistics {posargs}
commands_post =
coverage report
coverage html
coverage xml