feat: Update devcontainer setup with Dockerfile and improved script for pre-commit hooks
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m37s

This commit is contained in:
2025-12-26 01:17:16 +01:00
parent eb3a74b709
commit 4c12baef28
3 changed files with 11 additions and 11 deletions

View File

@@ -1,16 +1,11 @@
#!/bin/bash
# 1. Fix Git Permissions (Critical in Docker)
sudo chown -R $(whoami) .git
git config --global --add safe.directory $(pwd)
# 2. Re-connect Git Hooks
# 'pre-commit install' is idempotent (it checks if the hook exists and exits fast).
# It's safe to run on every start.
if command -v pre-commit &> /dev/null; then
pre-commit install
else
echo "⚠️ Warning: pre-commit not found. Skipping hook installation."
fi
# We REMOVED 'npm install' from here to speed up your daily workflow.