-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtox.ini
62 lines (56 loc) · 1.07 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
[tox]
envlist =
py38,
py39,
py310,
py311,
py312,
flake8,
black,
isort
coverage
skip_missing_interpreters = False
[testenv]
usedevelop = true
install_command = python -m pip install {opts} {packages}
commands =
coverage run {envbindir}/zope-testrunner --test-path=src []
extras = test
deps =
-rrequirements-testing.txt
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}
[testenv:coverage]
basepython = python3.12
skip_install = true
deps = coverage
depends =
py38
py39
py310
py311
py312
setenv =
COVERAGE_FILE=.coverage
commands =
coverage erase
coverage combine
coverage html
coverage xml
coverage report
[testenv:flake8]
basepython = python3.12
skip_install = true
deps = flake8
commands = flake8 --ignore=E203 --max-line-length=88 --doctests src setup.py
[testenv:black]
basepython = python3.12
skip_install = true
deps = black
commands = black --check src setup.py
[testenv:isort]
basepython = python3.12
skip_install = true
deps = isort
commands = isort --check-only --df src setup.py