repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt --
language: system
files: \.rs$
args: []
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
files: \.rs$
pass_filenames: false
args: []
- id: cargo-clippy
name: cargo clippy
description: Run the Clippy linter on the package.
entry: cargo clippy -- -D warnings
language: system
files: \.rs$
pass_filenames: false