Skip to content

Commit 2d4926d

Browse files
Enforce ruff/Pylint Refactor rules (PLR)
1 parent 63e3384 commit 2d4926d

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
"UP", # pyupgrade
265266
"FURB", # refurb
266267
"RUF",
@@ -276,6 +277,8 @@ ignore = [
276277
"PERF203", # try-except within a loop incurs performance overhead
277278
"E402", # module level import not at top of file
278279
"E731", # do not assign a lambda expression, use a def
280+
"PLR091", # too many arguments / branches / statements
281+
"PLR2004", # magic value used in comparison
279282
"UP007", # use X | Y for type annotations
280283
"FURB105", # unnecessary empty string passed to `print`
281284
"RUF001", # string contains ambiguous unicode character

0 commit comments

Comments
 (0)