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
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m37s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user