-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (50 loc) · 1.03 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]
env_list =
check
docs
py{38,39,310,311,312}{,-coverage}
[gh-actions]
python =
3.8: check, py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
{check,docs}: python3
setenv =
PYTHONUNBUFFERED = yes
PYTEST_EXTRA_ARGS = -s
coverage: PYTEST_EXTRA_ARGS = --cov
passenv =
*
extras =
test
commands =
mypy src tests
pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
[testenv:check]
description = perform style checks
deps =
build
pre-commit
skip_install = true
commands =
pre-commit install
pre-commit run --all-files --show-diff-on-failure
python -m build
[testenv:docs]
description = build HTML docs
setenv =
READTHEDOCS_PROJECT = kedro_sphinx_theme
READTHEDOCS_VERSION = latest
extras =
doc
commands =
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -vW -bhtml