Skip to content

Commit

Permalink
Add code coverage exclude_lines config (flyteorg#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringohoffman authored and RRap0so committed Dec 15, 2023
1 parent c073cba commit e416a83
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 e416a83

Please sign in to comment.