Debian Codegraph @

tox.ini

raw
1 [tox]
2 minversion = 4.3.4
3 requires=
4 virtualenv>=20.7.2
5 skip_missing_interpreters=True
6 envlist =
7 pep8,black,mypy,
8 gevent,eventlet,sasl,
9 docs,
10 pypy3
11 isolated_build = true
12
13 [testenv]
14 wheel = True
15 wheel_build_env = build
16 install_command = pip install -c{toxinidir}/constraints.txt {opts} {packages}
17 passenv =
18 CI
19 TOX_*
20 CI_*
21 ZOOKEEPER_*
22 setenv =
23 pypy3: PYPY=1
24 extras =
25 test
26 docs: docs
27 gevent: gevent
28 eventlet: eventlet
29 sasl: sasl
30 deps =
31 sasl: kerberos
32 allowlist_externals =
33 {toxinidir}/ensure-zookeeper-env.sh
34 {toxinidir}/init_krb5.sh
35 bash
36 commands =
37 bash \
38 sasl: {toxinidir}/init_krb5.sh {envtmpdir}/kerberos \
39 {toxinidir}/ensure-zookeeper-env.sh \
40 pytest {posargs: -ra -v --cov-report=xml --cov=kazoo kazoo/tests}
41
42 [testenv:build]
43
44 [testenv:pep8]
45 basepython = python3
46 extras = alldeps
47 deps =
48 flake8
49 usedevelop = True
50 commands = flake8 {posargs} {toxinidir}/kazoo
51
52 [testenv:black]
53 basepython = python3
54 extras =
55 deps =
56 black
57 usedevelop = True
58 commands = black --check {posargs: {toxinidir}/kazoo {toxinidir}/kazoo}
59
60 [testenv:mypy]
61 basepython = python3
62 extras = alldeps
63 deps =
64 mypy
65 mypy: types-mock
66 usedevelop = True
67 commands = mypy --config-file {toxinidir}/pyproject.toml {toxinidir}/kazoo