Mirror verifiers' local-hook pattern: ruff check/format on commit, ty check on push (matches CI). Add ``pre-commit`` to the dev dep group so ``uv sync`` installs it.
22 lines
552 B
YAML
22 lines
552 B
YAML
default_install_hook_types: [pre-commit, pre-push]
|
|
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff-check
|
|
name: ruff check
|
|
entry: uv run ruff check --fix
|
|
language: system
|
|
types_or: [python, pyi]
|
|
- id: ruff-format
|
|
name: ruff format
|
|
entry: uv run ruff format
|
|
language: system
|
|
types_or: [python, pyi]
|
|
- id: ty
|
|
name: ty (ci parity)
|
|
entry: uv run --python 3.13 ty check renderers
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-push]
|