Skip to content

Commit

Permalink
ci: Add coverage exclude regexes (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch authored Jun 27, 2024
1 parent 99320b1 commit a49038c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,18 @@ build-backend = "poetry.core.masonry.api"
plugins = ["pydantic.mypy"]
strict = true
allow_redefinition = true


[tool.coverage.report]
exclude_also = [
# Don't complain about missing coverage on typing imports
"if TYPE_CHECKING:",

# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
"raise InternalGuppyError",

# Don't complain about abstract methods, they aren't run:
"@abstractmethod",
]

0 comments on commit a49038c

Please sign in to comment.