Pre-Commit Config Generator
Generate .pre-commit-config.yaml with popular hooks for linting, formatting, and security scanning.
AdSense
Top banner
Add Hooks
General
Formatting
Linting
Security
Configured Repos
Hooks:
Generated .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-jsonPlace this file at the repository root. Run
pre-commit install to set up the git hook.Was this page helpful?