Skip to content

Commit

Permalink
ci(coverage): Ignore code directives, docs/conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 29, 2023
1 parent c592d5b commit efe1342
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,25 @@ filterwarnings = [
django_find_project = false
DJANGO_SETTINGS_MODULE = 'tests.settings'

[tool.coverage.run]
omit = [
"docs/conf.py",
]

[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]

[build-system]
requires = ["poetry_core>=1.0.0", "poetry>=1.1.12"]
build-backend = "poetry.core.masonry.api"

0 comments on commit efe1342

Please sign in to comment.