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 Apr 14, 2024
1 parent eb7dc1b commit 804ae46
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 @@ -140,3 +140,27 @@ warn_required_dynamic_aliases = true
[tool.autoflake]
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/*",
]

0 comments on commit 804ae46

Please sign in to comment.