-
Notifications
You must be signed in to change notification settings - Fork 140
/
tox.ini
84 lines (74 loc) · 1.76 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
[tox]
envlist =
py38-twisted_lowest,
{pypy3,py38,py39,py310,py311,py312,py313}-twisted_latest,
{pypy3,py38,py39,py310,py311,py312,py313}-twisted_trunk,
twine, check-manifest, flake8, docs, coverage-report
isolated_build = true
[testenv]
extras = dev
deps =
coverage
twisted_lowest: Twisted==22.10.0
twisted_latest: Twisted
twisted_trunk: https://github.com/twisted/twisted/archive/trunk.zip
setenv =
# Avoid unnecessary network access when creating virtualenvs for speed.
VIRTUALENV_NO_DOWNLOAD=1
PIP_DISABLE_PIP_VERSION_CHECK=1
passenv = TERM # ensure colors
commands =
pip list
python -Wall \
{envbindir}/coverage run -p \
{envbindir}/trial --temp-directory={envtmpdir}/_trial_temp {posargs:treq}
[testenv:mypy]
basepython = python3.12
deps =
mypy==1.0.1
mypy-zope==0.9.1
types-requests
commands =
mypy \
--cache-dir="{toxworkdir}/mypy_cache" \
{tty:--pretty:} \
{posargs:src}
[testenv:flake8]
python = python3.12
skip_install = True
deps = flake8
commands = flake8 src/treq/
[testenv:towncrier]
python = python3.12
deps =
towncrier
commands =
towncrier {posargs:--draft}
[testenv:twine]
python = python3.12
deps =
twine
commands =
twine check {distdir}/*.*
[testenv:check-manifest]
python = python3.12
deps =
check-manifest
commands =
check-manifest
[testenv:docs]
extras = docs
changedir = docs
basepython = python3.12
commands =
sphinx-build -b html . html
[testenv:coverage-report]
depends = pypy3,py38,py39,py310,py311,py312
commands =
coverage combine
coverage report
[flake8]
# This is a minimal Black-compatible config.
# See https://black.readthedocs.io/en/stable/compatible_configs.html#flake8
max-line-length = 88
extend-ignore = E203, W503, E266