From 0f0e5b97d339d71fa99ade35042bc20462190304 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 25 Sep 2023 16:23:47 +0200 Subject: [PATCH] Ignore type checking lines in coverage report --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 314b9ce5..294438ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,3 +28,8 @@ addopts = """ [tool.mypy] ignore_missing_imports = true + +[tool.coverage.report] +exclude_lines = [ + "if TYPE_CHECKING:", +]