Use pyproject.toml to maintain coverage options

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

Change-Id: Ifae6a6178b5b924b29376a26f99ac7642c0d9803
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami committed 2026-10-02 11:58:49 +09:00
1 parent dcfa71213b
commit 19ddd9b4d9
3 files changed
+14 -9

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
[run]
branch = True
source = automaton
omit = automaton/tests/*
[report]
ignore_errors = True
precision = 2
+13
View File
@@ -39,6 +39,19 @@ Repository = "https://opendev.org/openstack/automaton"
[tool.setuptools.packages.find]
include = ["automaton"]
[tool.coverage.run]
source = [
"automaton"
]
branch = true
omit = [
"automaton/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
stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT