repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.6.0
    hooks:
      - id: end-of-file-fixer
      - id: check-added-large-files
        args: [--maxkb=2048]
  - repo: https://github.com/pre-commit/mirrors-prettier
    rev: "v4.0.0-alpha.8"
    hooks:
      - id: prettier
  - repo: local
    hooks:
      - id: fmt
        name: lint/format
        entry: hatch fmt
        language: python
        types: [python]
        pass_filenames: false
      - id: check
        name: static type check
        entry: hatch run types:check
        language: python
        types: [python]
        pass_filenames: false
      - id: cov
        name: test/coverage
        entry: hatch run cov-xml
        language: python
        types: [python]
        pass_filenames: false
        verbose: true
