forked from mozilla/bleach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (69 loc) · 1.37 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
# Note: If you update this, make sure to update .github/workflows/, too.
[tox]
envlist =
py{36,37,38,39,310,py3}
py{36,37,38,39,310}-build-no-lang
docs
format-check
lint
vendorverify
[testenv]
deps =
-rrequirements-dev.txt
commands =
pytest {posargs:-v}
python setup.py build
[testenv:py36-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py37-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[testenv:py38-build-no-lang]
setenv =
LANG=
commands =
python setup.py build
[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:lint]
basepython = python3.9
changedir = scripts
deps =
-rrequirements-dev.txt
commands =
./run_tests.sh lint
[testenv:vendorverify]
basepython = python3.9
changedir = scripts
deps =
-rrequirements-dev.txt
commands =
./run_tests.sh vendorverify
[testenv:format-check]
basepython = python3.9
changedir = scripts
deps =
-rrequirements-dev.txt
commands =
./run_tests.sh format-check
[testenv:docs]
basepython = python3.9
changedir = docs
deps =
-rrequirements-dev.txt
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/doctest