Clean up unneeded ruff noqa directives (#113616)
This commit is contained in:
parent
c57dcacade
commit
6ee273a548
42 changed files with 48 additions and 63 deletions
|
@ -19,7 +19,7 @@ async def async_call_shell_with_timeout(
|
|||
"""
|
||||
try:
|
||||
_LOGGER.debug("Running command: %s", command)
|
||||
proc = await asyncio.create_subprocess_shell( # noqa: S602 # shell by design
|
||||
proc = await asyncio.create_subprocess_shell( # shell by design
|
||||
command,
|
||||
close_fds=False, # required for posix_spawn
|
||||
)
|
||||
|
@ -43,7 +43,7 @@ async def async_call_shell_with_timeout(
|
|||
async def async_check_output_or_log(command: str, timeout: int) -> str | None:
|
||||
"""Run a shell command with a timeout and return the output."""
|
||||
try:
|
||||
proc = await asyncio.create_subprocess_shell( # noqa: S602 # shell by design
|
||||
proc = await asyncio.create_subprocess_shell( # shell by design
|
||||
command,
|
||||
close_fds=False, # required for posix_spawn
|
||||
stdout=asyncio.subprocess.PIPE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue