File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ extend-select = [
262
262
" PIE" , # flake8-pie
263
263
" TID" , # flake8-tidy-imports (absolute imports)
264
264
" PYI" , # flake8-pyi
265
+ " SIM" , # flake8-simplify
265
266
" FLY" , # flynt
266
267
" I" , # isort
267
268
" PERF" , # Perflint
@@ -283,6 +284,10 @@ ignore = [
283
284
" PIE790" , # unnecessary pass statement
284
285
" PYI019" , # use `Self` instead of custom TypeVar
285
286
" PYI041" , # use `float` instead of `int | float`
287
+ " SIM108" , # use ternary operator instead of `if`-`else`-block
288
+ " SIM117" , # use a single `with` statement instead of nested `with` statements
289
+ " SIM118" , # use `key in dict` instead of `key in dict.keys()`
290
+ " SIM300" , # yoda condition detected
286
291
" PERF203" , # try-except within a loop incurs performance overhead
287
292
" E402" , # module level import not at top of file
288
293
" E731" , # do not assign a lambda expression, use a def
You can’t perform that action at this time.
0 commit comments