diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 68e9a87e..00000000 --- a/.coveragerc +++ /dev/null @@ -1,18 +0,0 @@ -[run] -branch = True -source = djangocms_snippet -omit = - migrations/* - tests/* - -[report] -exclude_lines = - pragma: no cover - def __repr__ - if self.debug: - if settings.DEBUG - raise AssertionError - raise NotImplementedError - if 0: - if __name__ == .__main__.: -ignore_errors = True diff --git a/pyproject.toml b/pyproject.toml index d3a33449..fc015bfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,23 @@ Changelog = "https://github.com/django-cms/djangocms-snippet/blob/master/CHANGEL Repository = "https://github.com/django-cms/djangocms-snippet" Support = "https://www.django-cms.org/slack/" +[tool.coverage.run] +branch = true +parallel = true +source = [ + "djangocms_snippet", + "tests", +] + +[tool.coverage.paths] +source = [ + "src", + ".tox/**/site-packages", +] + +[tool.coverage.report] +show_missing = true + [tool.mypy] check_untyped_defs = true disallow_any_generics = true