forked from twisted/treq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
84 lines (74 loc) · 1.71 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}-twisted_latest,
{pypy3,py38,py39,py310,py311,py312}-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 {posargs:treq}
[testenv:mypy]
basepython = python3.8
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.11
skip_install = True
deps = flake8
commands = flake8 src/treq/
[testenv:towncrier]
python = python3.11
deps =
towncrier
commands =
towncrier {posargs:--draft}
[testenv:twine]
python = python3.11
deps =
twine
commands =
twine check {distdir}/*.*
[testenv:check-manifest]
python = python3.11
deps =
check-manifest
commands =
check-manifest
[testenv:docs]
extras = docs
changedir = docs
basepython = python3.8
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