diff --git a/pyproject.toml b/pyproject.toml index db7005f..58dbda4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -209,3 +209,16 @@ testpaths = [ filterwarnings = [ "ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::", ] + +[tool.coverage.report] +exclude_also = [ + "def __repr__", + "raise AssertionError", + "raise NotImplementedError", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", + "if t.TYPE_CHECKING:", + "class .*\\bProtocol\\):", + "@(abc\\.)?abstractmethod", + "from __future__ import annotations", +]