Pre-commit Hook Generator

Build a .pre-commit-config.yaml from a catalog of well-known hooks.

Hooks

Leave empty to omit. Each line is language: version.

Leave empty to omit. Example: pre-commit, commit-msg.

.pre-commit-config.yaml
default_language_version:
  python: python3.11

default_install_hook_types:
  - pre-commit

repos:
  - repo: https://github.com/pre-commit/mirrors-prettier
    rev: v3.1.0
    hooks:
      - id: prettier