Skip to content

Commit 23e4a67

Browse files
committed
Ignore type checking lines in coverage report
1 parent 8def728 commit 23e4a67

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ target-version = "py38"
4444
[tool.ruff.isort]
4545
force-single-line = true
4646
required-imports = ["from __future__ import annotations"]
47+
48+
[tool.coverage.report]
49+
exclude_lines = [
50+
"if TYPE_CHECKING:",
51+
]

0 commit comments

Comments
 (0)