repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-shebang-scripts-are-executable
exclude: '.+\.rs'
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
pass_filenames: true
types: [file, rust]
language: system
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy -- -D warnings
pass_filenames: false
language: system