mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-09 02:11:56 -05:00
- book/tools/git-hooks/pre-commit: runs pre-commit run --all-files - setup.sh: one-time config (git config core.hooksPath) - Ensures local commits pass same checks as CI
6 lines
224 B
Bash
Executable File
6 lines
224 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# MLSysBook: Run pre-commit on ALL files (matches CI behavior).
|
|
# This hook runs before every commit. Configure with: git config core.hooksPath book/tools/git-hooks
|
|
set -e
|
|
exec pre-commit run --all-files
|