Replace bandit with ruff (#93200)

This commit is contained in:
Ville Skyttä 2023-06-08 23:46:04 +03:00 committed by GitHub
parent f7938c940c
commit ca936d0b38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 36 additions and 61 deletions

View file

@ -19,7 +19,7 @@ def call_shell_with_timeout(
_LOGGER.debug("Running command: %s", command)
subprocess.check_output(
command,
shell=True, # nosec # shell by design
shell=True, # noqa: S602 # shell by design
timeout=timeout,
close_fds=False, # required for posix_spawn
)
@ -45,7 +45,7 @@ def check_output_or_log(command: str, timeout: int) -> str | None:
try:
return_value = subprocess.check_output(
command,
shell=True, # nosec # shell by design
shell=True, # noqa: S602 # shell by design
timeout=timeout,
close_fds=False, # required for posix_spawn
)