-
Notifications
You must be signed in to change notification settings - Fork 394
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (62 loc) · 1.29 KB
/
Copy pathtox.ini
File metadata and controls
67 lines (62 loc) · 1.29 KB
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
[tox]
requires=
tox>=4.22
virtualenv>=20.7.2
skip_missing_interpreters=True
envlist =
ruff,mypy,
gevent,eventlet,sasl,
docs,
pypy3
isolated_build = true
[testenv]
wheel = True
wheel_build_env = build
install_command = pip install {opts} {packages}
passenv =
ZOOKEEPER_*
RUFF_*
setenv =
pypy3: PYPY=1
dependency_groups =
test
extras =
gevent: gevent
eventlet: eventlet
sasl: sasl
deps =
sasl: kerberos
allowlist_externals =
{toxinidir}/ensure-zookeeper-env.sh
{toxinidir}/init_krb5.sh
bash
commands =
bash \
sasl: {toxinidir}/init_krb5.sh {envtmpdir}/kerberos \
{toxinidir}/ensure-zookeeper-env.sh \
pytest {posargs: -ra -v --cov-report=xml --cov=kazoo kazoo/tests}
[testenv:build]
[testenv:docs]
dependency_groups =
test-extras
extras =
eventlet
gevent
sasl
deps =
-r{toxinidir}/docs/requirements.txt
commands = sphinx-build -b html docs {toxworkdir}/docs/html
[testenv:ruff]
dependency_groups = ruff
usedevelop = True
commands =
ruff check {posargs: {toxinidir}/kazoo}
ruff format --check {posargs: {toxinidir}/kazoo}
[testenv:mypy]
dependency_groups = mypy
extras =
eventlet
gevent
sasl
usedevelop = True
commands = mypy --config-file {toxinidir}/pyproject.toml {toxinidir}/kazoo