File: tox.ini

package info (click to toggle)
python-bleach 6.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,356 kB
  • sloc: python: 14,626; sh: 61; makefile: 51
file content (123 lines) | stat: -rw-r--r-- 2,404 bytes parent folder | download
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{310,311,312,313,314,py3}
    py{310,311,312,313,314,py3}-tinycss2
    py{310,311,312,313,314}-build-no-lang
    py310-docs
    py310-format-check
    py310-lint
    py310-vendorverify

[gh-actions]
python =
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313
    3.14: py314
    pypy-3.10: pypy3

[testenv]
deps = -rrequirements-dev.txt
commands =
    pytest {posargs:-v}
    python setup.py build

[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:py314-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: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:py314-build-no-lang]
setenv =
    LANG=
commands =
    python setup.py build

[testenv:py310-lint]
changedir = {toxinidir}
deps = -rrequirements-flake8.txt
platform = linux
commands =
    flake8 setup.py tests/ bleach/ tests_website/

[testenv:py310-vendorverify]
allowlist_externals = {toxinidir}/scripts/vendor_verify.sh
changedir = {toxinidir}
deps = -rrequirements-dev.txt
platform = linux
commands =
    {toxinidir}/scripts/vendor_verify.sh

[testenv:py310-format-check]
changedir = {toxinidir}
deps = -rrequirements-dev.txt
platform = linux
commands =
    black --target-version=py310 --check --diff --exclude=_vendor setup.py bleach/ tests/ tests_website/

[testenv:py310-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