-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
39 lines (33 loc) · 839 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
[tox]
envlist =
py3{8,9,10,11,12,13},
lint,
type,
stubtest
skip_missing_interpreters=true
[gh-actions]
python =
3.8: py38,
3.9: py39
3.10: py310
3.11: py311
3.12: py312, lint, type, stubtest
3.13: py313
[testenv]
description = run tests with {basepython}
install_command = pip install -U --upgrade-strategy eager {opts} {packages}
deps = -r{toxinidir}/requirements-test.txt
extras = dev
commands = python -m pytest {posargs}
[testenv:lint]
description = check the code style
basepython = python3.12
commands = python -m flake8 {posargs}
[testenv:type]
description = type check
basepython = python3.12
commands = python -m mypy --install-types --non-interactive --pretty crd_typed kubernetes_typed scripts
[testenv:stubtest]
description = test stubs
basepython = python3.12
commands = python -m pytest -m stubtest