forked from python-zk/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (63 loc) · 1.34 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
[tox]
minversion = 4.3.4
requires=
virtualenv>=20.7.2
skip_missing_interpreters=True
envlist =
pep8,black,mypy,
gevent,eventlet,sasl,
docs,
pypy3
isolated_build = true
[testenv]
wheel = True
wheel_build_env = build
install_command = pip install -c{toxinidir}/constraints.txt {opts} {packages}
passenv =
CI
TOX_*
CI_*
ZOOKEEPER_*
setenv =
pypy3: PYPY=1
extras =
test
docs: docs
gevent: gevent
eventlet: eventlet
sasl: sasl
deps =
sasl: kerberos
codecov: codecov
allowlist_externals =
{toxinidir}/ensure-zookeeper-env.sh
{toxinidir}/init_krb5.sh
commands =
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:codecov]
commands = - codecov -e TOX_VENV,ZOOKEEPER_VERSION
[testenv:pep8]
basepython = python3
extras = alldeps
deps =
flake8
usedevelop = True
commands = flake8 {posargs} {toxinidir}/kazoo
[testenv:black]
basepython = python3
extras =
deps =
black
usedevelop = True
commands = black --check {posargs: {toxinidir}/kazoo {toxinidir}/kazoo}
[testenv:mypy]
basepython = python3
extras = alldeps
deps =
mypy
mypy: types-mock
usedevelop = True
commands = mypy --config-file {toxinidir}/pyproject.toml {toxinidir}/kazoo