Migrate coverage configuration to pyproject
We also remove an incorrect note from tox.ini: coverage configuration is not the same as running coverage. Change-Id: I62305fbfdaaa50040b05545fa40426f4c9fadae8 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
[run]
|
||||
branch = True
|
||||
source = nova
|
||||
omit = nova/tests/*
|
||||
concurrency = eventlet
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
@@ -115,6 +115,15 @@ skip = "*.po,*.js,*.css,*.html,*.svg,HACKING.py,*hacking*,*build*,*_static*,doc/
|
||||
count = true
|
||||
quiet-level = 4
|
||||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
source = ["nova"]
|
||||
omit = ["nova/tests/*"]
|
||||
concurrency = ["eventlet"]
|
||||
|
||||
[tool.coverage.report]
|
||||
ignore_errors = true
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
show_column_numbers = true
|
||||
|
||||
4
tox.ini
4
tox.ini
@@ -214,10 +214,6 @@ commands =
|
||||
oslopolicy-sample-generator --config-file=etc/nova/nova-policy-generator.conf
|
||||
|
||||
[testenv:cover]
|
||||
# TODO(stephenfin): Remove the PYTHON hack below in favour of a [coverage]
|
||||
# section once we rely on coverage 4.3+
|
||||
#
|
||||
# https://bitbucket.org/ned/coveragepy/issues/519/
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
PYTHON=coverage run --source nova --parallel-mode
|
||||
|
||||
Reference in New Issue
Block a user