repos: # General repository hygiene hooks - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - id: debug-statements - id: name-tests-test - id: check-merge-conflict # Python tooling via uv (versions pinned in uv.lock) - repo: local hooks: - id: ruff-check name: ruff check entry: uv run ruff check --fix language: system types: [python] - id: ruff-format name: ruff format entry: uv run ruff format language: system types: [python] - id: mypy name: mypy entry: uv run mypy . language: system types: [python] pass_filenames: false - id: pyupgrade name: pyupgrade entry: uv run pyupgrade --py312-plus language: system types: [python] # Formatting for Markdown, JSON, and YAML with Prettier - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: - id: prettier files: "\\.(md|json|yaml|yml)$"