Skip to content

Commit c71cd75

Browse files
committed
pyproject(tool.coverage.report) Refine exclusions
1 parent e1e5759 commit c71cd75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ exclude_also = [
252252
"if settings.DEBUG",
253253
"raise AssertionError",
254254
"raise NotImplementedError",
255-
"if 0:",
256255
"if __name__ == .__main__.:",
257256
"if TYPE_CHECKING:",
257+
"if t.TYPE_CHECKING:",
258258
"class .*\\bProtocol\\):",
259259
"@(abc\\.)?abstractmethod",
260+
"from __future__ import annotations",
260261
]

0 commit comments

Comments
 (0)