From 8c846f073672e46a837a409059aa3056d882409c Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Sat, 9 Dec 2023 16:27:22 +0100 Subject: [PATCH] FIX: ignore `TYPE_CHECKING` boxes in coverage --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index cfa0392..16090f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -152,6 +152,11 @@ target-version = [ "py39", ] +[tool.coverage.report] +exclude_also = [ + "if TYPE_CHECKING:", +] + [tool.coverage.run] branch = true omit = ["version.py"]