From 1a0f0ad770f58aafe787206e16dc9f1188b5c646 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sun, 28 Apr 2024 11:43:43 +0800 Subject: [PATCH] Omit tests folder and exclude func --- 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" + ]