mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Ignore Ruff SIM103 (#115732)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
ac54cdcdb4
commit
fe9e5e4382
@ -763,6 +763,7 @@ ignore = [
|
|||||||
"RUF003", # Comment contains ambiguous unicode character.
|
"RUF003", # Comment contains ambiguous unicode character.
|
||||||
"RUF015", # Prefer next(...) over single element slice
|
"RUF015", # Prefer next(...) over single element slice
|
||||||
"SIM102", # Use a single if statement instead of nested if statements
|
"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
|
"SIM108", # Use ternary operator {contents} instead of if-else-block
|
||||||
"SIM115", # Use context handler for opening files
|
"SIM115", # Use context handler for opening files
|
||||||
"TRY003", # Avoid specifying long messages outside the exception class
|
"TRY003", # Avoid specifying long messages outside the exception class
|
||||||
|
Loading…
x
Reference in New Issue
Block a user