Skip to content

Commit

Permalink
Merge pull request #556 from posit-dev/chore-exclude-type-checking-co…
Browse files Browse the repository at this point in the history
…verage

chore: exclude `if TYPE_CHECKING:` lines from coverage reporting
  • Loading branch information
machow authored Dec 10, 2024
2 parents fdd43e3 + f4a702d commit c2acdbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,8 @@ ignore = [
"F841", # local variable 'name' is assigned to but never used
"E702", # multiple statements on one line (semicolon)
]

[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:"
]

0 comments on commit c2acdbe

Please sign in to comment.