Skip to content

Commit

Permalink
[nfc] ruff: disable too many branches/statements (#2786)
Browse files Browse the repository at this point in the history
Imo these are arbitrary and are often fought with.
  • Loading branch information
mikea authored Sep 24, 2024
1 parent d2fd517 commit 993b3ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ select = [
]
ignore = [
"E402", # module import not at top of file
"PLR0912", # too many branches
"PLR0915", # too many statements
"PLR2004", # Magic value used in comparison
"TRY003", # Avoid specifying long messages outside the exception class
"UP038", # Use X | Y in isinstance check instead of (X, Y)
Expand Down

0 comments on commit 993b3ff

Please sign in to comment.