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).
22 lines
507 B
YAML
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
|