From a292d9a431464663d1a38c7cf73c8cb72f43a030 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Sat, 14 Oct 2023 11:40:10 +0200 Subject: [PATCH] Ignore TYPE_CHECKING lines for coverage reports --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 3a725ee62..0e709ec3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,8 @@ +[tool.coverage.report] +exclude_lines = [ + "if TYPE_CHECKING:", +] + [tool.ruff] select = [ "F",