Skip to content

Commit 927ff72

Browse files
Enforce ruff/Pylint Refactor rules (PLR)
1 parent b34c22a commit 927ff72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ extend-select = [
261261
"W", # pycodestyle warnings
262262
"PGH", # pygrep-hooks
263263
"PLE", # Pylint Errors
264+
"PLR", # Pylint Refactor
264265
"PLW", # Pylint Warnings
265266
"UP", # pyupgrade
266267
"FURB", # refurb
@@ -277,6 +278,8 @@ ignore = [
277278
"PERF203", # try-except within a loop incurs performance overhead
278279
"E402", # module level import not at top of file
279280
"E731", # do not assign a lambda expression, use a def
281+
"PLR091", # too many arguments / branches / statements
282+
"PLR2004", # magic value used in comparison
280283
"PLW0603", # using the global statement to update is discouraged
281284
"PLW0642", # reassigned `self` variable in instance method
282285
"PLW1641", # object does not implement `__hash__` method

0 commit comments

Comments
 (0)