build.py: allow initialization without installing pre-commit hook

Gitlab: #1219
Change-Id: I5a2e2099d6ad1b551e2d744ffbf800b79c36a821
This commit is contained in:
Andreas Traczyk
2023-06-22 15:01:35 -04:00
committed by Adrien Béraud
parent 24a0a384ff
commit 0f66152d72
2 changed files with 18 additions and 16 deletions

View File

@@ -329,7 +329,7 @@ def run_init(args):
# The client submodule has QML files, so we need to run qmlformat on it,
# and thus need to supply the Qt path.
execute_script([f'{format_script} --install {client_hooks_dir}'
f' --qt {args.qt}' if args.qt else ''],
f' --qt {args.qt}'],
{"path": client_hooks_dir})
# The daemon submodule has no QML files, so we don't need to run