84b3445a55
This actually broke the hook. The -- needs to be present for pre-commit
to be able to pass the file names to run the hook on.
This reverts commit 4bb2cb56a1
.
22 lines
496 B
YAML
22 lines
496 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
|