Skip to content

Commit

Permalink
Add coverage report ignore configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Jan 1, 2024
1 parent ed05cf0 commit ca2ae08
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,29 @@ omit = [
"generate_pages.py",
]

[tool.coverage.report]
precision = 1
skip_covered = true
exclude_lines = [
"pragma: no cover",
"abc.abstractmethod",
"if TYPE_CHECKING.*:",
"if _t.TYPE_CHECKING:",
"if t.TYPE_CHECKING:",
"@overload",
'class .*\bProtocol\b.*\):',
"raise NotImplementedError",
]
partial_branches = [
"pragma: no branch",
"if not TYPE_CHECKING:",
"if not _t.TYPE_CHECKING:",
"if not t.TYPE_CHECKING:",
"if .* or not TYPE_CHECKING:",
"if .* or not _t.TYPE_CHECKING:",
"if .* or not t.TYPE_CHECKING:",
]

[tool.tox]
legacy_tox_ini = """
[tox]
Expand Down

0 comments on commit ca2ae08

Please sign in to comment.