-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtox.ini
58 lines (51 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
55
56
57
58
[tox]
envlist = py{36,37,38,39,310,311,312,313},doc,lint,format,coverage
skip_missing_interpreters = false
isolated_build = true
[testenv]
allowlist_externals =
docker
podman
buildah
deps =
-r test-requirements.txt
passenv =
CONTAINER_RUNTIME
PULL_ALWAYS
# required for podman to work
HOME
USER
XDG_CONFIG_HOME
XDG_RUNTIME_DIR
commands = coverage run -m pytest -vv tests -p pytest_container --pytest-container-log-level=debug []
[testenv:coverage]
commands =
coverage combine
coverage report -m
coverage html
coverage xml
[testenv:doc]
deps =
sphinx
commands = sphinx-build -M html source build -W []
[testenv:lint]
deps =
mypy
pylint
twine
ruff
-r test-requirements.txt
commands =
mypy pytest_container
pylint pytest_container tests/
twine check --strict dist/*.whl
ruff check
[testenv:format]
allowlist_externals = ./format.sh
deps =
ruff
commands = ./format.sh []
[testenv:venv]
passenv = *
allowlist_externals = *
commands = {posargs} []