-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
87 lines (74 loc) · 1.58 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
minversion = 3.23
envlist =
py{38,39,310,311,312}
pypy{38,310}
eol_py{27,36,37,py27}
cover-{clean,report}
lint
labels =
eol = eol_py{27,36,37,py27}
[testenv]
deps =
coverage[toml]
pytest
commands =
coverage run -m pytest {posargs:tests}
pytest --doctest-modules --doctest-glob=README.md README.md src
depends:
py{38,39,310,311,312},pypy{27,38,310}: cover-clean
cover-report: py{38,39,310,311,312},pypy{27,38,310}
[testenv:cover-clean]
skip_install = true
deps = coverage[toml]
commands = coverage erase
[testenv:cover-report]
skip_install = true
deps = coverage[toml]
commands =
-coverage combine
coverage report --show-missing --fail-under=100
[testenv:lint]
skip_install = True
deps =
build
twine
check-manifest
commands =
python -m build --sdist --outdir {envtmpdir}/dist
twine check {envtmpdir}/dist/*
check-manifest
# Old versions of tox & virtualenv are required to test under eol
# versions of python. However, those old versions don't seem to
# consistently work with newer pythons, e.g. pypy310.
#
# So this hack...
[eoltox]
deps =
tox<4
virtualenv<20.22.0
setuptools
[testenv:eol_py27]
skip_install = true
deps = {[eoltox]deps}
commands =
tox -e py27
[testenv:eol_py36]
skip_install = true
deps = {[eoltox]deps}
commands =
tox -e py36
[testenv:eol_py37]
skip_install = true
deps = {[eoltox]deps}
commands =
tox -e py37
[testenv:eol_pypy27]
skip_install = true
deps = {[eoltox]deps}
commands =
tox -e pypy27
[flake8]
# because black
max-line-length = 88
extend-ignore = E203