From 3b80d9951f915a3fe26232d8c65af70ece1d6337 Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Tue, 1 Aug 2023 11:12:12 -0700 Subject: [PATCH] Exclude coverage. --- pyproject.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7c9e908..f619e95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,3 +100,22 @@ ignore_missing_imports = true [tool.codespell] ignore-words-list = "mater,te,nd" check-filenames = true + +[tool.coverage.run] +relative_files = true + +[tool.coverage.report] +exclude_lines = [ + "@deprecated", + "def __repr__", + "if 0:", + "if __name__ == .__main__.:", + "if self.debug:", + "if settings.DEBUG", + "pragma: no cover", + "raise AssertionError", + "raise NotImplementedError", + "input", + "if TYPE_CHECKING:", + "except PackageNotFoundError:" +]