From 339a9e788291c9054e5b9716fcb988b8ed792657 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Tue, 24 Sep 2024 13:46:05 -0700 Subject: [PATCH] [nfc] ruff: disable too many branches/statements (#2786) Imo these are arbitrary and are often fought with. --- .ruff.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ruff.toml b/.ruff.toml index fb6aec7ca3f..5ac7ddc45b8 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -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)