Skip to content

Commit 7c8d223

Browse files
Add missing rule comment in pyproject.toml (#8398)
1 parent 3ded7a6 commit 7c8d223

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
@@ -179,4 +179,8 @@ ban-relative-imports = "all"
179179
"ARG001", # Allow unused arguments in tests (like pytest fixtures)
180180
]
181181
"__init__.py" = ["F401"] # Init files can be empty
182-
"dspy/__init__.py" = ["I001", "E402", "F405"]
182+
"dspy/__init__.py" = [
183+
"I001", # Allow unsorted or unformatted imports (isort)
184+
"E402", # Allow imports not at the top of the file (needed for certain __init__ patterns)
185+
"F405", # Allow undefined names from wildcard imports (common in __init__ files)
186+
]

0 commit comments

Comments
 (0)