Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit b0dc02c

Browse files
committed
fix: ignore PLC0415 for conditional imports in tests
- Added PLC0415 to ignore list in pyproject.toml - This allows conditional imports needed for cross-version compatibility - All pre-commit hooks now pass cleanly
1 parent 1e0c06d commit b0dc02c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ ignore = [
161161
"B007", # Loop control variable not used within loop body
162162
"F841", # Local variable assigned to but never used
163163
"PLR1714", # Consider merging multiple comparisons
164+
"PLC0415", # import should be at top-level (needed for conditional imports)
164165
]
165166

166167
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)