Skip to content

Commit 6808108

Browse files
committed
pyproject(coverage): Add exclusions for imports and type aliases
why: Further reduce coverage noise from non-functional lines what: - Exclude import statements - Exclude from-import statements - Exclude TypeAlias definitions - Exclude TypeVar definitions - Fix logger exclusion pattern
1 parent bbf11c8 commit 6808108

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ exclude_lines = [
155155
"^\\s*\\.\\.\\.$",
156156
"^\\s*pass$",
157157
"^\\s*assert ",
158-
"^\\s*logger\\.",
158+
"^\\s*logger\\s*=",
159+
"^import ",
160+
"^from .* import",
161+
": TypeAlias = ",
162+
"= t\\.TypeVar\\(",
159163
]
160164

161165
[tool.ruff]

0 commit comments

Comments
 (0)