We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a9f52 commit e51db18Copy full SHA for e51db18
pre_commit_hooks/runner.py
@@ -53,12 +53,13 @@ def run_sbt_command(
53
opts: Opts = Opts(),
54
):
55
print(f"Running SBT command: {task_def} with options: {opts}")
56
+ sbt_args = "--client" if opts.client else ""
57
if opts.clean:
58
task_def = f"; clean ; {task_def}"
59
else:
60
task_def = f"; {task_def}"
61
sbt_process = subprocess.run(
- ["sbt", task_def, "--client" if opts.client else ""],
62
+ [f"sbt {sbt_args} '{task_def}'"],
63
stdout=subprocess.PIPE,
64
stderr=subprocess.STDOUT,
65
shell=True,
0 commit comments