codeflash-internal/django/aiservice/.pre-commit-config.yaml
Kevin Turcios 1e1820d27a
feat: add ty type checker to pre-k hooks (#2213)
Adds a local pre-commit hook for ty type checker since there's no
official pre-commit hook available yet (tracked in astral-sh/ty#269).
2026-01-09 22:36:53 -05:00

22 lines
507 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-format
- repo: local
hooks:
# Disabled for now - many existing linting issues to fix
# - id: ruff-check
# name: ruff linter
# entry: uv run -q ruff check
# language: system
# types: [python]
# pass_filenames: true
- id: ty-check
name: ty type checker
entry: uv run -q ty check
language: system
types: [python]
pass_filenames: true