A curated collection of pre-commit hooks to automate code linting, formatting, and security checks.
🏗️ Work in Progress...
If interested, bookmark this page!
General Housekeeping
Pre-commit Hooks
Basic hooks to maintain file integrity across different environments.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
args: ['--allow-multiple-documents']
- id: end-of-file-fixer
- id: trailing-whitespaceSecret Detection
Prevents accidental commits of sensitive information (API keys, tokens).
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']Conventional Commits
Enforces standardized commit messages to ensure the repository history remains readable and compatible with automated changelog tools.
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.11.1
hooks:
- id: commitizenPython
Coming soon…