-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
79 lines (70 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
[tox]
envlist =
# linters
pylint
ruff
# unit tests
py{37,38,39,310,311,312}
pypy3
[testenv]
commands =
{envpython} -m tests {posargs}
deps =
setenv =
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_NO_PYTHON_VERSION_WARNING=1
PYTHONDONTWRITEBYTECODE=1
TOX_INI_DIR={toxinidir}
usedevelop =
true
# ######################################################################
# unit testing related to specific features which require external tools
# ######################################################################
[testenv:tools]
commands =
{envpython} -m tests --test-dir tool-tests {posargs}
deps =
{[testenv]deps}
-r{toxinidir}/requirements-tools.txt
setenv =
{[testenv]setenv}
RELENG_PYTHON={envpython}
passenv =
*
[testenv:{py27-,py34-,py35-,py36-,py37-,py38-,py39-,py310-,py311-,py312-,py313-}tools]
commands =
{[testenv:tools]commands}
deps =
{[testenv:tools]deps}
setenv =
{[testenv:tools]setenv}
passenv =
*
# ######################################################################
# tests non-editable installs, to ensure interpreters package correctly
# ######################################################################
[testenv:{py27-,py34-,py35-,py36-,py37-,py38-,py39-,py310-,py311-,py312-,py313-}release]
usedevelop =
false
# ######################################################################
# linters
# ######################################################################
[testenv:pylint]
deps =
{[testenv]deps}
pylint
commands =
pylint \
releng_tool \
scripts \
tests
[testenv:ruff]
deps =
{[testenv]deps}
ruff: ruff==0.3.4
commands =
ruff \
check \
releng_tool \
scripts \
tests