Skip to content

Commit

Permalink
Unpack options for subprocess cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Aug 22, 2023
1 parent 698b5a6 commit 5fb190d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/utils/run_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main(hook: str, options: list[str]) -> None:
)

result = subprocess.run(
f"{run_pre_commit} {options} {hook}",
f"{run_pre_commit} {' '.join(_ for _ in options)} {hook}",
check=False,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down

0 comments on commit 5fb190d

Please sign in to comment.