repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- repo: local
hooks:
- id: fmt
name: fmt
description: Format files with rustfmt.
entry: cargo fmt --
language: system
types: [rust]
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: check
name: check
description: Check compilation errors
entry: cargo check --all-targets --all-features
language: system
types: [rust]
pass_filenames: false