-
Notifications
You must be signed in to change notification settings - Fork 56
/
tox.ini
54 lines (48 loc) · 1.3 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
[tox]
#envlist = checks,licenses,py{38,39,310,311,312}-{unittest,integration}
envlist = checks,py{38,39,310,311,312}-{unittest,integration}
isolated_build = True
[testenv]
passenv =
HOME
RABBITMQ_HOST
sitepackages = False
skip_install = True
allowlist_externals =
poetry
commands_pre =
pip install --upgrade pip
poetry install --all-extras
commands =
unittest: poetry run coverage erase
unittest: poetry run coverage run -m pytest -vv tests/unit {posargs}
unittest: poetry run coverage report -m
unittest: poetry run coverage xml
unittest: poetry run coverage html
unittest: poetry run diff-cover --compare-branch origin/develop --fail-under 100 coverage.xml
integration: poetry run pytest -vv tests/integration {posargs}
[testenv:docs]
changedir = docs
allowlist_externals =
poetry
mkdir
rm
commands=
mkdir -p _static
rm -rf _build
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
sphinx-build -W -b man -d {envtmpdir}/doctrees . _build/man
[testenv:checks]
deps =
pre-commit
commands = pre-commit run --all-files
# [testenv:licenses]
# allowlist_externals =
# poetry
# {toxinidir}/devel/run-liccheck.sh
# commands =
# {toxinidir}/devel/run-liccheck.sh
[flake8]
max-line-length = 100
[pytest]
addopts = --reactor asyncio