Skip to content

Commit bbf11c8

Browse files
committed
pyproject(coverage): Add exclusions for noise lines
why: Improve coverage accuracy by excluding non-functional lines what: - Exclude ellipsis-only lines (protocol stubs) - Exclude pass statements - Exclude assert statements (debug-only) - Exclude logger statements
1 parent bd1cf83 commit bbf11c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ exclude_lines = [
152152
'class .*\bProtocol\):',
153153
"from __future__ import annotations",
154154
"import typing as t",
155+
"^\\s*\\.\\.\\.$",
156+
"^\\s*pass$",
157+
"^\\s*assert ",
158+
"^\\s*logger\\.",
155159
]
156160

157161
[tool.ruff]

0 commit comments

Comments
 (0)