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
exclude: ^charts/.*templates/
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.0
hooks:
- id: ruff-format
- id: ruff
args: [--fix]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.3.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, docs, refactor, test, chore, perf, ci, build, revert]
- repo: local
hooks:
- id: ty-check
name: ty type check
entry: uvx ty check
language: system
pass_filenames: false
- id: no-co-authored-by-claude
name: reject Co-Authored-By Claude
entry: sh -c '! grep -qi "co-authored-by.*claude" "$1"' --
language: system
stages: [commit-msg]