Skip to content

Commit e51db18

Browse files
committed
Revert to the task_def style that was there before
1 parent b0a9f52 commit e51db18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pre_commit_hooks/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ def run_sbt_command(
5353
opts: Opts = Opts(),
5454
):
5555
print(f"Running SBT command: {task_def} with options: {opts}")
56+
sbt_args = "--client" if opts.client else ""
5657
if opts.clean:
5758
task_def = f"; clean ; {task_def}"
5859
else:
5960
task_def = f"; {task_def}"
6061
sbt_process = subprocess.run(
61-
["sbt", task_def, "--client" if opts.client else ""],
62+
[f"sbt {sbt_args} '{task_def}'"],
6263
stdout=subprocess.PIPE,
6364
stderr=subprocess.STDOUT,
6465
shell=True,

0 commit comments

Comments
 (0)