-
Notifications
You must be signed in to change notification settings - Fork 98
/
tox.ini
62 lines (51 loc) · 1.73 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
[tox]
envlist = py38, py39, py310, py311, py312, cover, style, docs
[testenv]
# Consolidate all deps here instead of separately in test/style/cover so we
# have a single env to work with, which makes debugging easier (like which env?).
# Not as clean but easier to work with during development, which is better.
deps =
-r requirements-test.txt
install_command =
pip install -U {packages}
recreate = False
skipsdist = True
usedevelop = True
setenv =
PIP_PROCESS_DEPENDENCY_LINKS=1
PIP_DEFAULT_TIMEOUT=60
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
envdir = {package_root}/.virtualenvs/ducktape_{envname}
commands =
pytest {env:PYTESTARGS:} {posargs}
[testenv:py38]
envdir = {package_root}/.virtualenvs/ducktape-py38
[testenv:py39]
envdir = {package_root}/.virtualenvs/ducktape-py39
[testenv:py310]
envdir = {package_root}/.virtualenvs/ducktape-py310
[testenv:py311]
envdir = {package_root}/.virtualenvs/ducktape-py311
[testenv:py312]
envdir = {package_root}/.virtualenvs/ducktape-py312
[testenv:style]
basepython = python3.12
envdir = {package_root}/.virtualenvs/ducktape
commands =
flake8 --config tox.ini
[testenv:cover]
basepython = python3.12
envdir = {package_root}/.virtualenvs/ducktape
commands =
pytest {env:PYTESTARGS:} --cov ducktape --cov-report=xml --cov-report=html --cov-report=term --cov-report=annotate:textcov \
--cov-fail-under=70
[testenv:docs]
basepython = python3.8
deps =
-r {toxinidir}/docs/requirements.txt
changedir = {toxinidir}/docs
commands = sphinx-build -M {env:SPHINX_BUILDER:html} . _build {posargs}
[flake8]
exclude = .git,.tox,.eggs,__pycache__,docs,build,dist,.virtualenvs
ignore = E111,E121,W292,E123,E226,W503
max-line-length = 120