diff --git a/pyproject.toml b/pyproject.toml index 1e4fd060..7494540f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,3 +105,14 @@ env = "GL_TOKEN" [tool.semantic_release.publish] dist_glob_patterns = ["dist/*"] upload_to_vcs_release = true + +[tool.coverage.report] +skip_empty = true # exclude empty *files*, e.g. __init__.py, from the report +exclude_lines = [ + "pragma: no cover", + "if TYPE_CHECKING:", + "return NotImplemented", + "raise NotImplementedError", + "...", + 'if __name__ == "__main__":', +]