mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
ty joins the dev dependency group, locked at 0.0.89, and a local hook runs `uv run ty check` over the whole project whenever Python files change. [tool.ty.src] limits the check to pqcli/ and tests/, so agent worktrees under .claude/ are not checked as duplicate copies of the project.
26 lines
516 B
YAML
26 lines
516 B
YAML
default_install_hook_types: [pre-commit, commit-msg]
|
|
default_stages: [pre-commit]
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.17.1
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: ty
|
|
name: ty
|
|
entry: uv run ty check
|
|
language: system
|
|
pass_filenames: false
|
|
types: [python]
|
|
- id: commit-msg-50-72
|
|
name: Commit message 50/72 rule
|
|
entry: python3 .prek/check_commit_msg
|
|
language: system
|
|
stages: [commit-msg]
|