Skip to content

Commit

Permalink
Provide example of coverage tool.coverage.report exclude_also
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthagen committed Nov 12, 2023
1 parent 96a48f8 commit 8f0364d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,11 @@ filterwarnings = [

[tool.coverage.run]
branch = true

# To globally exclude additional code blocks from code coverage reporting, see:
# https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
#[tool.coverage.report]
#exclude_also = [
# "if TYPE_CHECKING:",
# "raise NotImplementedError",
#]

0 comments on commit 8f0364d

Please sign in to comment.