Setup Pre-Commit
Configure pre-commit checks for the project.
Workflow
- Identify the smallest fast checks worth running before each commit.
- Choose the project's preferred hook tool.
- Install the hook without overwriting unrelated existing config.
- Scope checks to staged files when possible.
- Verify the hook is fast enough to keep.