Merge commit 'e9036a8fc2248a2a35d0a8d4e804c7a9260b5cb6' into develop

This commit is contained in:
assistant-librarian[bot]
2025-07-01 09:09:46 +00:00
parent 789ae74204
commit 0a14ff6218
3 changed files with 47 additions and 9 deletions

View File

@@ -1,5 +1,4 @@
#!/bin/bash
run_and_check() {
"$@"
status=$?
@@ -13,8 +12,12 @@ run_and_check() {
echo "I: Installing tools required for pre-commit checks..."
run_and_check apt install clang-format-12
echo "I: Installing pre-commit itself..."
run_and_check pip3 install pre-commit
echo "I: Creating and activating virtual environment for pre-commit..."
python3 -m venv "$(dirname "$0")/../.venv"
source "$(dirname "$0")/../.venv/bin/activate"
echo "I: Installing pre-commit in virtual environment..."
run_and_check pip install pre-commit
run_and_check pre-commit install
echo "I: Installation successful."