repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.12.11 hooks: # Run the linter. - id: ruff-check # Run the formatter. - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-yaml - id: check-json - id: check-merge-conflict - id: end-of-file-fixer - repo: local hooks: - id: ty name: ty check entry: uvx ty check src/ language: system pass_filenames: false always_run: true