696 B
696 B
Pre-commit Hooks
This project uses pre-commit to ensure code quality and consistent formatting for all contributors.
First-time setup
-
Run the setup script (recommended):
./setup.shThis will install pre-commit (if not already installed) and set up the git hooks for you.
-
Or, manually install pre-commit and the hooks:
pip install pre-commit pre-commit install
Running hooks manually
To check all files with pre-commit hooks:
pre-commit run --all-files
CI Enforcement
All commits and pull requests are checked with pre-commit hooks in CI. You must pass these checks to merge code.