More CICD fixes again again again again again again again again again again
All checks were successful
CICD Start / Sanity and Base Decision (pull_request) Successful in 1m3s

Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
This commit is contained in:
copilotcoder
2026-06-05 13:33:01 -04:00
parent 539f4077dd
commit 2595a15bd0

View File

@@ -178,9 +178,15 @@ RUN echo "=== Installing Backend Package in Development Mode ===" && \
WORKDIR /workspace
RUN echo "=== Installing Pre-commit Hook Environments ===" && \
if [ -f ".pre-commit-config.yaml" ]; then \
# Use project's Python environment for pre-commit
cd backend && uv run pre-commit install-hooks && \
echo "✓ Pre-commit hook environments installed successfully"; \
# pre-commit expects a git repository; create a temporary one for CI image prewarming.
git init /workspace >/dev/null 2>&1 || true && \
cd backend && \
if uv run pre-commit install-hooks; then \
echo "✓ Pre-commit hook environments installed successfully"; \
else \
echo "⚠ pre-commit hook prewarming failed; continuing"; \
fi && \
rm -rf /workspace/.git; \
else \
echo "No .pre-commit-config.yaml found, skipping hook installation"; \
fi