-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (37 loc) · 942 Bytes
/
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
[tox]
isolated_build = true
skip_missing_interpreters = True
envlist =
py3{11},
pre-commit,
[gh]
python =
3.11 = py311
[testenv]
allowlist_externals = poetry
commands_pre =
poetry install --no-root
commands =
poetry run pytest --cov --cov-config=pyproject.toml --cov-append --cov-report term-missing --doctest-modules --cov-report xml:{toxworkdir}/.coverage.{envname}.xml -ra -q -n auto
coverage xml -o {toxworkdir}/.coverage.{envname}.xml
setenv =
PIP_DISABLE_VERSION_CHECK = 1
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
depends =
py3{11}: clean
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands_pre =
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
changedir=docs/
deps =
sphinx
commands =
sphinx-build -b linkcheck ./ _build/
sphinx-build -b html ./ _build/
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase