Skip to content

Commit b41cafb

Browse files
committed
ignore PLC0415 for all tests
1 parent 38f5c04 commit b41cafb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pyproject.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,13 @@ indent-style = "space"
145145
"**/{tests}/*" = [
146146
"D", # Everything from the pydocstyle
147147
"INP001", # File {filename} is part of an implicit namespace package, add an __init__.py
148+
"PLC0415", # `import` should be at the top-level of a file
148149
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
149150
"S101", # Use of assert detected
150151
"SLF001", # Private member accessed: `{name}`
151152
"T20", # flake8-print
152-
"TRY301", # Abstract `raise` to an inner function
153153
"TID252", # Prefer absolute imports over relative imports from parent modules
154-
]
155-
"**/{tests}/{integration}/*" = [
156-
"PLC0415", # `import` should be at the top-level of a file
157-
]
158-
"**/{tests}/e2e/*" = [
159-
"PLC0415", # `import` should be at the top-level of a file
154+
"TRY301", # Abstract `raise` to an inner function
160155
]
161156
"**/{docs,website}/**" = [
162157
"D", # Everything from the pydocstyle

0 commit comments

Comments
 (0)