forked from M-Labs/thermostat
25 lines
627 B
YAML
25 lines
627 B
YAML
|
# See https://pre-commit.com for more information
|
||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||
|
|
||
|
default_stages: [commit]
|
||
|
|
||
|
repos:
|
||
|
- repo: local
|
||
|
hooks:
|
||
|
- id: cargo-fmt
|
||
|
name: cargo format
|
||
|
entry: cargo
|
||
|
language: system
|
||
|
types: [file, rust]
|
||
|
pass_filenames: false
|
||
|
description: Runs cargo fmt on the codebase.
|
||
|
args: [fmt]
|
||
|
- id: cargo-clippy
|
||
|
name: cargo clippy
|
||
|
entry: cargo
|
||
|
language: system
|
||
|
types: [file, rust]
|
||
|
pass_filenames: false
|
||
|
description: Runs cargo clippy on the codebase.
|
||
|
args: [clippy]
|