default_install_hook_types: ["pre-commit", "commit-msg"]
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
    - id: check-yaml
    - id: check-json
    - id: check-toml
    - id: check-merge-conflict
    - id: check-case-conflict
    - id: detect-private-key
  - repo: local
    hooks:
    - id: rustfmt
      name: rustfmt
      description: Run cargo fmt on staged files
      entry: cargo fmt --all --
      language: system
      types: [rust]
      pass_filenames: false
  - repo: https://github.com/crate-ci/typos
    rev: v1.32.0
    hooks:
    - id: typos
  - repo: https://github.com/crate-ci/committed
    rev: v1.1.7
    hooks:
    - id: committed
