Skip to content

Commit 170df8b

Browse files
committed
[chore] lint: ignore RET505 ruff rule
This rule is only true for simple if/else block as shown in the ruff documentation example. For most cases, it's better to have explicit if/elif/else blocks. Part-of: #32
1 parent 2c10634 commit 170df8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ ignore = [
4141
"PLR2004", # magic-value-comparison; not all comparisons to int or str are magic
4242
"TRY003", # raise-vanilla-args; we can live without it
4343
"TRY200", # reraise-no-cause; not python2 compatible
44+
"RET505", # only true for simple if/elif branches (like in the ruff doc example). if/elif blocks are easier to read in most cases
4445
# not (yet) supported rules
4546
# "E301",
4647
# "E302",

0 commit comments

Comments
 (0)