-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
42 lines (37 loc) · 929 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
envlist = py{37,38,39,310,311},lint,docs,isort
[testenv]
allowlist_externals =
poetry
setenv=
POETRY_VIRTUALENVS_CREATE=false
commands_pre=
poetry install -n -v --no-root
commands=
poetry run pytest {posargs}
[testenv:py310]
commands =
poetry run pytest --live --cov=quiz {posargs}
[testenv:lint]
commands=
poetry run black --check --diff src/ tests/
poetry run flake8 src/ tests/
[testenv:isort]
commands=
poetry run isort --check-only --diff src/ tests/
[testenv:docs]
deps=
-rdocs/requirements.txt
commands=
sphinx-build -W -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" \
--color -bhtml
python -c 'import pathlib; print("documentation available under " \
+ (pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html").as_uri())'
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, lint, isort, docs
3.11: py311