mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Enable RUF101 (#135835)
This commit is contained in:
parent
ef8b8fbbaa
commit
c651e2b3c3
@ -203,7 +203,7 @@ class PlexServer:
|
|||||||
config_entry_update_needed = True
|
config_entry_update_needed = True
|
||||||
else:
|
else:
|
||||||
# pylint: disable-next=raise-missing-from
|
# pylint: disable-next=raise-missing-from
|
||||||
raise Unauthorized( # noqa: TRY200
|
raise Unauthorized( # noqa: B904
|
||||||
"New certificate cannot be validated"
|
"New certificate cannot be validated"
|
||||||
" with provided token"
|
" with provided token"
|
||||||
)
|
)
|
||||||
|
@ -93,7 +93,7 @@ def raise_for_blocking_call(
|
|||||||
return
|
return
|
||||||
|
|
||||||
if found_frame is None:
|
if found_frame is None:
|
||||||
raise RuntimeError( # noqa: TRY200
|
raise RuntimeError( # noqa: B904
|
||||||
f"Caught blocking call to {func.__name__} "
|
f"Caught blocking call to {func.__name__} "
|
||||||
f"with args {mapped_args.get('args')} "
|
f"with args {mapped_args.get('args')} "
|
||||||
f"in {offender_filename}, line {offender_lineno}: {offender_line} "
|
f"in {offender_filename}, line {offender_lineno}: {offender_line} "
|
||||||
|
@ -772,6 +772,7 @@ select = [
|
|||||||
"RUF033", # __post_init__ method with argument defaults
|
"RUF033", # __post_init__ method with argument defaults
|
||||||
"RUF034", # Useless if-else condition
|
"RUF034", # Useless if-else condition
|
||||||
"RUF100", # Unused `noqa` directive
|
"RUF100", # Unused `noqa` directive
|
||||||
|
"RUF101", # noqa directives that use redirected rule codes
|
||||||
"RUF200", # Failed to parse pyproject.toml: {message}
|
"RUF200", # Failed to parse pyproject.toml: {message}
|
||||||
"S102", # Use of exec detected
|
"S102", # Use of exec detected
|
||||||
"S103", # bad-file-permissions
|
"S103", # bad-file-permissions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user