diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index fd55c715..00000000 --- a/.coveragerc +++ /dev/null @@ -1,7 +0,0 @@ -[run] -branch = True -source = oslo_cache -omit = oslo_cache/tests/* - -[report] -ignore_errors = True diff --git a/pyproject.toml b/pyproject.toml index 96328166..923d978f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/test-requirements.txt b/test-requirements.txt index 132c610f..0b74518d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 diff --git a/tox.ini b/tox.ini index 8b6fe7de..8f943fd7 100644 --- a/tox.ini +++ b/tox.ini @@ -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