Skip to content

Commit

Permalink
pyproject(tool.coverage.report) Add exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jan 4, 2025
1 parent 793b8be commit 6714954
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,16 @@ testpaths = [
filterwarnings = [
"ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::",
]

[tool.coverage.report]
exclude_also = [
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if t.TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"from __future__ import annotations",
]

0 comments on commit 6714954

Please sign in to comment.