repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.2.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-added-large-files
  - repo: local
    hooks:
      - id: cargo-fmt-nightly
        name: rustfmt
        language: "rust"
        entry: cargo +nightly fmt
        pass_filenames: false
      - id: integration-test-checksums
        name: Integration Test Artifact Checksums
        language: "system"
        files: integration-tests/program-binaries/.*\.(json|so|md5sum)$
        entry: md5sum --check canary.md5sum
        pass_filenames: false