Skip to content

Commit

Permalink
Add overload coverage exemption
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 7, 2024
1 parent b920bbd commit 1153a02
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .coveragerc

This file was deleted.

24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,30 @@ warn_required_dynamic_aliases = true
in-place = true
remove-all-unused-imports = true

[tool.coverage.report]
fail_under = 60
exclude_lines = [
"@overload",
"if TYPE_CHECKING:",
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
'if __name__ == .__main__.:',
"if sys.version_info",
'class .*\(.*(Error|Exception)\):',
'^ *\.\.\.$',
]

[tool.coverage.run]
branch = true
omit = [
"tests/data/*",
"tests/util/*",
".*",
"venv/*",
]

[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
Expand Down

0 comments on commit 1153a02

Please sign in to comment.