cleanup precommit hooks (#3616)

Co-authored-by: Suchintan <suchintan@users.noreply.github.com>
This commit is contained in:
greg niemeyer
2025-10-09 18:20:02 -07:00
committed by GitHub
parent 451d5787cd
commit 7cd92f6972
6 changed files with 26 additions and 26 deletions

View File

@@ -172,16 +172,21 @@ Updating, improving and correcting the documentation
## Styleguides
### Pre Commit Hooks
Make sure to run the pre-commit hooks before committing your code.
This will help you to automatically format your code and catch cicd failures early.
Make sure to install and run the pre-commit hooks before committing your code.
This will help you to automatically format your code and catch CI/CD failures early.
```bash
# Make sure `pre-commit` is installed
pip install pre-commit
# Run pre-commit hooks on files in your commit
# Install the git hook scripts (one-time setup)
pre-commit install
# (Optional) Run pre-commit hooks manually on all files
pre-commit run --all-files
```
Once installed, the hooks will run automatically on `git commit`.
### Commit Messages
<!-- TODO