Skip to content

Commit

Permalink
Add sensible coverage exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanjmcdougall committed Jan 9, 2025
1 parent 52790ce commit 5159f6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ filterwarnings = [ "error" ]
source = [ "src" ]
omit = [ "*/pytest-of-*/*" ]

[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
"raise AssertionError",
"raise NotImplementedError",
"assert_never(.*)",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]

[tool.uv]
default-groups = [ "test", "dev" ]

Expand Down

0 comments on commit 5159f6e

Please sign in to comment.