Use pyproject.toml to maintain coverage options

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

Change-Id: Ibb17ef3a1a220569b3f6c51de2c6f65222743cd9
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami committed 2026-10-01 03:21:59 +00:00
1 parent 2f17912114
commit 4640936ca0
4 files changed
+15 -9

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
[run]
branch = True
source = oslo_cache
omit = oslo_cache/tests/*
[report]
ignore_errors = True
+13
View File
@@ -53,6 +53,19 @@ etcd3gw = [
[tool.setuptools.packages.find]
include = ["oslo_cache*"]
[tool.coverage.run]
source = [
"oslo_cache"
]
branch = true
omit = [
"oslo_cache/tests/*"
]
[tool.coverage.report]
ignore_errors = true
show_missing = true
[tool.mypy]
python_version = "3.11"
show_column_numbers = true
+1 -1
View File
@@ -1,4 +1,4 @@
coverage>=4.0 # Apache-2.0
coverage>=5.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
pifpaf>=0.10.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
+1 -1
View File
@@ -73,7 +73,7 @@ commands =
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --show-missing
coverage report
[flake8]
show-source = true