pre-commit-rust/.pre-commit-hooks.yaml

22 lines
497 B
YAML
Raw Normal View History

2017-04-13 13:30:33 +01:00
- id: fmt
name: fmt
2020-01-12 21:02:48 +00:00
description: Format files with cargo fmt.
entry: cargo fmt
2017-04-13 13:30:33 +01:00
language: system
2020-01-12 21:03:33 +00:00
types: [rust]
2020-06-20 01:46:24 +01:00
args: ['--']
2019-05-06 00:17:37 +01:00
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
2020-01-12 21:03:33 +00:00
types: [rust]
2019-05-06 00:17:37 +01:00
pass_filenames: false
2019-08-18 16:55:30 +01:00
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy -- -D warnings
language: system
2020-01-12 21:03:33 +00:00
types: [rust]
2019-08-18 16:55:30 +01:00
pass_filenames: false