repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - id: check-merge-conflict - id: check-case-conflict - id: check-toml - id: check-yaml - id: forbid-submodules - id: mixed-line-ending - repo: local hooks: - id: cargo-fmt name: cargo fmt entry: cargo fmt --all -- language: system types: [rust] pass_filenames: false