Skip to content

Commit 9868617

Browse files
committed
pyproject(tool.coverage.report) Add exclusions
1 parent 8af2a59 commit 9868617

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,15 @@ filterwarnings = [
193193
[tool.pytest-watcher]
194194
now = true
195195
ignore_patterns = ["*.py.*.py"]
196+
197+
[tool.coverage.report]
198+
exclude_also = [
199+
"def __repr__",
200+
"raise AssertionError",
201+
"raise NotImplementedError",
202+
"if __name__ == .__main__.:",
203+
"if TYPE_CHECKING:",
204+
"class .*\\bProtocol\\):",
205+
"@(abc\\.)?abstractmethod",
206+
"from __future__ import annotations",
207+
]

0 commit comments

Comments
 (0)