fail_fast: true

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.0.1
    hooks:
      - id: check-yaml
      - id: check-toml
      - id: end-of-file-fixer
      - id: trailing-whitespace
      - id: check-added-large-files

  - repo: local
    hooks:
      - id: lint-python
        name: Lint Python
        entry: make lint-python
        types: [python]
        language: system
        pass_filenames: false
      - id: typecheck-python
        name: Typecheck Python
        entry: make pyright
        types: [python]
        language: system
        pass_filenames: false
      - id: lint-rust
        name: Lint Rust
        entry: make lint-rust
        types: [rust]
        language: system
        pass_filenames: false
