# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
        exclude: "^.idea/"
      - id: check-yaml
      - id: check-toml
      - id: check-json
  - repo: https://github.com/shellcheck-py/shellcheck-py
    rev: v0.10.0.1
    hooks:
      - id: shellcheck
        exclude: "^completions/" # TODO: remove after usage is released again
  - repo: https://github.com/rhysd/actionlint
    rev: v1.7.4
    hooks:
      - id: actionlint
        args: ["-shellcheck", ""]
  - repo: https://github.com/kykosic/pre-commit-rust
    rev: 0.4.0
    hooks:
      - id: cargo-fmt
      - id: cargo-check
