-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (47 loc) · 988 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
43
44
45
46
47
48
49
50
51
[tox]
env_list =
py39
py311
coverage
[testenv]
description = run the tests with pytest under {basepython}
package = wheel
wheel_build_env = .pkg
deps =
pytest>=6
pytest-cov
set_env =
FORCE_ENV_FOR_DYNACONF = testing
SETTINGS_FILE_FOR_DYNACONF = tests/proxmox_grapple_tests.yml
allowlist_externals =
env
commands =
pytest \
--cov proxmox_grapple \
--cov-config "{toxinidir}/tox.ini" \
{tty:--color=yes} {posargs} -v tests
[testenv:coverage]
passenv =
{[testenv]passenv}
skip_install = true
deps =
coverage>=6.4.4
parallel_show_output = true
commands =
coverage report -m
coverage xml
coverage html
depends = py311
[coverage:run]
branch = true
parallel = true
[coverage:report]
skip_covered = True
show_missing = True
exclude_lines =
\#\s*pragma: no cover
^\s*raise AssertionError\b
^\s*raise NotImplementedError\b
^\s*return NotImplemented\b
^\s*raise$
^if __name__ == ['"]__main__['"]:$