noqa placement: ruff anchors S607 to the args list, not the call
This commit is contained in:
@@ -87,8 +87,8 @@ class TrueCloudPatchUpdateAlertSource(ThreadedAlertSource):
|
|||||||
# this file -- nothing user-supplied reaches the command line. The partial
|
# this file -- nothing user-supplied reaches the command line. The partial
|
||||||
# `git` path is moot: this runs as root inside middlewared, so anyone who
|
# `git` path is moot: this runs as root inside middlewared, so anyone who
|
||||||
# can poison PATH already has root.
|
# can poison PATH already has root.
|
||||||
return subprocess.run( # noqa: S603, S607
|
return subprocess.run( # noqa: S603
|
||||||
["git", "-C", PATCH_DIR, *args],
|
["git", "-C", PATCH_DIR, *args], # noqa: S607
|
||||||
capture_output=True, text=True, timeout=_TIMEOUT, check=True,
|
capture_output=True, text=True, timeout=_TIMEOUT, check=True,
|
||||||
).stdout
|
).stdout
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user