Merge "Use pyproject.toml to maintain coverage options"

This commit is contained in:
Zuul authored and Gerrit Code Review committed 2026-10-03 20:15:14 +00:00
commit 5c6e58e0b7
4 files changed
+16 -9

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
[run]
branch = True
source = oslo_context
omit = oslo_context/tests/*
[report]
ignore_errors = True
precision = 2
+13
View File
@@ -36,6 +36,19 @@ Repository = "https://opendev.org/openstack/oslo.context"
[tool.setuptools.packages.find]
include = ["oslo_context*"]
[tool.coverage.run]
source = [
"oslo_context"
]
branch = true
omit = [
"oslo_context/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 @@
fixtures>=3.0.0 # Apache-2.0/BSD
oslotest>=3.2.0 # Apache-2.0
coverage>=4.0 # Apache-2.0
coverage>=5.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
+2
View File
@@ -51,10 +51,12 @@ commands =
setenv =
PYTHON=coverage run --source oslo_context --parallel-mode
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[flake8]
# We only enable the hacking (H) checks