Ignore Ruff SIM103 (#115732)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Sid 2024-05-08 23:56:59 +02:00 committed by GitHub
parent ac54cdcdb4
commit fe9e5e4382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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