Clean up unneeded ruff noqa directives (#113616)

This commit is contained in:
Sid 2024-03-16 20:48:37 +01:00 committed by GitHub
parent c57dcacade
commit 6ee273a548
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 48 additions and 63 deletions

View file

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