Skip to content

Commit

Permalink
Add code coverage exclude_lines config
Browse files Browse the repository at this point in the history
  • Loading branch information
ringohoffman committed Nov 24, 2023
1 parent a6f9991 commit 977dd43
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ markers = [
"sandbox_test: fake integration tests",
]

[tool.coverage.report]
exclude_also = [
"def __repr__",
"pragma: no cover",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING:",
"@(typing\\.)?overload",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
]

[tool.coverage.run]
branch = true

Expand Down

0 comments on commit 977dd43

Please sign in to comment.