From d3159c2ade46764e2f430387bb82f8a5109d67b6 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Wed, 29 May 2024 00:35:45 +0800 Subject: [PATCH] Omit tests folder and exclude func to increate coverage (#46) --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 29976f0..f975f51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,3 +55,12 @@ fallback_version = "0.0.0" [tool.mypy] show_error_codes = true show_column_numbers = true + +[tool.coverage.run] +omit = ["tests/*"] + +[tool.coverage.report] +exclude_also = [ + "__name__", + "FileNotFoundError" + ]