Use pyproject.toml to maintain coverage options

... to reduce independent config files for test tools.

Change-Id: Ic62fe96f892b7565ae59fa5ed7ee10e29b630ab0
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami committed 2026-10-03 17:27:19 +00:00
1 parent 1263698099
commit e5417a8712
4 files changed
+16 -12

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
[run]
branch = True
source = oslo_vmware
omit = oslo_vmware/tests/*
[report]
ignore_errors = True
precision = 2
+13
View File
@@ -33,6 +33,19 @@ Repository = "https://opendev.org/openstack/oslo.vmware"
[tool.setuptools.packages.find]
include = ["oslo_vmware*"]
[tool.coverage.run]
source = [
"oslo_vmware"
]
branch = true
omit = [
"oslo_vmware/tests/*"
]
[tool.coverage.report]
ignore_errors = true
show_missing = true
[tool.ruff]
line-length = 79
-4
View File
@@ -4,9 +4,5 @@ fixtures>=3.0.0 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
stestr>=2.0.0 # Apache-2.0
# when we can require tox>= 1.4, this can go into tox.ini:
# [testenv:cover]
# deps = {[testenv]deps} coverage
coverage!=4.4,>=4.0 # Apache-2.0
ddt>=1.0.1 # MIT
oslo.context>=2.19.2 # Apache-2.0
+3
View File
@@ -29,6 +29,9 @@ commands =
[testenv:cover]
setenv =
PYTHON=coverage run --source oslo_vmware --parallel-mode
deps =
{[testenv]deps}
coverage>=5.0 # Apache-2.0
commands =
coverage erase
{[testenv]commands}