pre-commit-rust/.pre-commit-hooks.yaml
2020-06-20 02:46:24 +02:00

22 lines
497 B
YAML

- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ['--']
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy -- -D warnings
language: system
types: [rust]
pass_filenames: false