Skip to content

Commit 00bfa99

Browse files
Fix new ruff error reported by CI
S603 `subprocess` call: check for execution of untrusted input S607 Starting a process with a partial executable path
1 parent 1090348 commit 00bfa99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

codespell_lib/tests/test_basic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ def run_codespell(
6363
"""Run codespell."""
6464
args = tuple(str(arg) for arg in args)
6565
proc = subprocess.run(
66-
["codespell", "--count", *args], cwd=cwd, capture_output=True, encoding="utf-8"
66+
["codespell", "--count", *args],
67+
cwd=cwd,
68+
capture_output=True,
69+
encoding="utf-8", # noqa: S603, S607
6770
)
6871
count = int(proc.stderr.split("\n")[-2])
6972
return count

0 commit comments

Comments
 (0)