From 64b08c54f73ab02be3f223e476f2b2856673e052 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 23 Sep 2023 22:51:12 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Exclude=20=5F=5Fname=5F=5F=20from?= =?UTF-8?q?=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d59233d..63b0987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,5 +111,6 @@ show_missing=true sort="-Stmts" omit = ["test/**"] exclude_lines = [ - 'if TYPE_CHECKING:' + 'if TYPE_CHECKING:', + 'if __name__ == "__main__":' ]