Skip to content

Commit 188d526

Browse files
authored
refactor: change git hook from pre-push to pre-commit (#401)
- Renamed scripts/pre-push to scripts/pre-commit - Updated install-hooks.sh to install pre-commit hook - Hook now runs formatting, type checking, and tests before commit
1 parent a519840 commit 188d526

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/install-hooks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ echo "Installing git hooks..."
66
# Make sure hooks directory exists
77
mkdir -p .git/hooks
88

9-
# Install pre-push hook
10-
cp scripts/pre-push .git/hooks/pre-push
11-
chmod +x .git/hooks/pre-push
9+
# Install pre-commit hook
10+
cp scripts/pre-commit .git/hooks/pre-commit
11+
chmod +x .git/hooks/pre-commit
1212

1313
echo "Git hooks installed successfully!"
File renamed without changes.

0 commit comments

Comments
 (0)