Skip to content

Commit 02a77e0

Browse files
committed
workaround PLC0415 (import not at top-level)
This should probably be handled differently but for now, just ignore those errors for specific files
1 parent e6614e2 commit 02a77e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,8 @@ ignore = [
122122
"ISC001", # Conflicts with formatter
123123
"PLR", # Design related pylint codes
124124
]
125+
126+
[tool.ruff.lint.per-file-ignores]
127+
"src/auditwheel/main_lddtree.py" = ["PLC0415"]
128+
"src/auditwheel/main_repair.py" = ["PLC0415"]
129+
"src/auditwheel/main_show.py" = ["PLC0415"]

0 commit comments

Comments
 (0)