From fe9e5e438237aa72c7f20efd1b6fad5a0222a17b Mon Sep 17 00:00:00 2001 From: Sid <27780930+autinerd@users.noreply.github.com> Date: Wed, 8 May 2024 23:56:59 +0200 Subject: [PATCH] Ignore Ruff SIM103 (#115732) Co-authored-by: J. Nick Koston --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 15cda6be16b..2770757fa57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -763,6 +763,7 @@ ignore = [ "RUF003", # Comment contains ambiguous unicode character. "RUF015", # Prefer next(...) over single element slice "SIM102", # Use a single if statement instead of nested if statements + "SIM103", # Return the condition {condition} directly "SIM108", # Use ternary operator {contents} instead of if-else-block "SIM115", # Use context handler for opening files "TRY003", # Avoid specifying long messages outside the exception class