-
Notifications
You must be signed in to change notification settings - Fork 251
/
tox.ini
123 lines (105 loc) · 2.33 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Note: If you update this, make sure to update .github/workflows/, too.
[tox]
envlist =
py{39,310,311,312,313,py3}
py{39,310,311,312,313,py3}-tinycss2
py{39,310,311,312,313}-build-no-lang
py39-docs
py39-format-check
py39-lint
py39-vendorverify
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
pypy-3.9: pypy3
[testenv]
deps = -rrequirements-dev.txt
commands =
pytest {posargs:-v}
python setup.py build
[testenv:py39-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}
[testenv:py310-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}
[testenv:py311-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}
[testenv:py312-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}
[testenv:py313-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}
[testenv:pypy3-tinycss2]
deps = -rrequirements-dev.txt
extras = css
commands =
pytest {posargs:-v}
[testenv:py39-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py310-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py311-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py312-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py313-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py39-lint]
changedir = {toxinidir}
deps = -rrequirements-flake8.txt
platform = linux
commands =
flake8 setup.py tests/ bleach/ tests_website/
[testenv:py39-vendorverify]
allowlist_externals = {toxinidir}/scripts/vendor_verify.sh
changedir = {toxinidir}
deps = -rrequirements-dev.txt
platform = linux
commands =
{toxinidir}/scripts/vendor_verify.sh
[testenv:py39-format-check]
changedir = {toxinidir}
deps = -rrequirements-dev.txt
platform = linux
commands =
black --target-version=py38 --check --diff --exclude=_vendor setup.py bleach/ tests/ tests_website/
[testenv:py39-docs]
changedir = docs
deps = -rrequirements-dev.txt
extras = css
platform = linux
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/doctest