Use pyproject.toml to maintain coverage options

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

Change-Id: I5b3749776f5580bdda552eaf9c96f1718a2f9ebe
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami committed 2026-10-02 11:56:15 +09:00
1 parent 43dc0d2a5d
commit 16f737a982
4 files changed
+15 -11

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
[run]
branch = True
source = tooz
omit = tooz/tests/*
[report]
ignore_errors = True
precision = 2
+13
View File
@@ -75,6 +75,19 @@ kubernetes = [
[tool.setuptools.packages.find]
include = ["tooz*"]
[tool.coverage.run]
source = [
"tooz"
]
branch = true
omit = [
"tooz/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,5 +1,5 @@
testtools>=1.4.0 # MIT
coverage>=3.6 # Apache-2.0
coverage>=5.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
pifpaf>=0.10.0 # Apache-2.0
stestr>=2.0.0
+1 -2
View File
@@ -48,7 +48,6 @@ commands =
{toxinidir}/run-examples.sh
[testenv:cover]
deps = {[testenv]deps}
setenv = {[testenv]setenv}
PYTHON=coverage run --source tooz --parallel-mode
commands =
@@ -57,7 +56,7 @@ commands =
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --show-missing
coverage report
[testenv:docs]
deps =