Skip to content

Commit

Permalink
Add some coverage configuration
Browse files Browse the repository at this point in the history
This will stop it complaining about some lines that are never
going to be hit in a test.
  • Loading branch information
timj committed Mar 28, 2024
1 parent c1a5825 commit 9dc425e
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 @@ -79,6 +79,14 @@ convention = "numpy"
# D104 - we do not require documentation in __init__.py files.
add-ignore = ["D107", "D105", "D102", "D104", "D100", "D200", "D205", "D400"]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]

[tool.ruff]
target-version = "py311"
Expand Down

0 comments on commit 9dc425e

Please sign in to comment.