From bf8120d03c2d23b04d4c584a07d29dcec2ab9dec Mon Sep 17 00:00:00 2001 From: Jacob Strieb Date: Sun, 3 Nov 2024 00:52:19 -0400 Subject: [PATCH] Fix spurious coverage failures --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cff1038..1d7a763 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,6 +107,9 @@ omit = [ ] [tool.coverage.report] +omit = [ + "__*__.py", +] exclude_lines = [ # Have to re-enable the standard pragma "pragma: no cover", @@ -122,8 +125,7 @@ exclude_lines = [ # Don't complain if non-runnable code isn't run "if __name__ == .__main__.:", - "cli_entrypoint\\(", - # "main\(", + "cli_entrypoint", # Ignore unused conditionals "pass",