From 71f0a98f273ada8960c6334d3ce73eb51658e145 Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Wed, 9 Apr 2025 17:07:40 +0100 Subject: [PATCH] run pre-commit install for post-checkout --- BuildChecker/git_helper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BuildChecker/git_helper.py b/BuildChecker/git_helper.py index becd4506e8..dbdc292de1 100644 --- a/BuildChecker/git_helper.py +++ b/BuildChecker/git_helper.py @@ -92,6 +92,10 @@ def install_hooks(): shutil.copy2(str(hooks_source_dir/filename), str(hooks_target_dir/filename)) + # Begin DeltaV Additions - add pre-commit hooks if you have it installed + if shutil.which("pre-commit") is not None: + run_command(["pre-commit", "install"], True) + # End DeltaV Additions def reset_solution(): """