Skip to content

Commit 449460a

Browse files
committed
exclude TYPE_CHECKING from coverage
Signed-off-by: gruebel <anton.gruebel@gmail.com>
1 parent e19133d commit 449460a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ disallow_any_generics = false
7878
[tool.pytest.ini_options]
7979
asyncio_default_fixture_loop_scope = "function"
8080

81+
[tool.coverage.report]
82+
exclude_also = [
83+
"if TYPE_CHECKING:",
84+
"if typing.TYPE_CHECKING:",
85+
]
86+
8187
[tool.ruff]
8288
exclude = [
8389
".git",

0 commit comments

Comments
 (0)