Pre-commit Config Builder
v1.2.1Generate pre-commit hook configurations for linting and formatting.
Generates .pre-commit-config.yaml for pre-commit hook frameworks — select hooks for linting (ESLint, flake8), formatting (Black, Prettier), security scanning, and commit-msg validation.
How to use- →Select the hooks relevant to your stack from the categorised list.
- →Set rev versions to pin each hook for reproducible CI.
- →Copy the YAML to .pre-commit-config.yaml and run pre-commit install.
Quick Presets
Hooks
.pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files