diff --git a/pyproject.toml b/pyproject.toml index e5598c2aff..e50c9b1800 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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