pre-commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: cargo-check
|
||||||
|
name: Cargo check
|
||||||
|
entry: cargo check
|
||||||
|
pass_filenames: false
|
||||||
|
types: [file, rust]
|
||||||
|
language: system
|
||||||
|
- id: rust-linting
|
||||||
|
name: Rust linting
|
||||||
|
entry: cargo fmt --all --
|
||||||
|
pass_filenames: true
|
||||||
|
types: [file, rust]
|
||||||
|
language: system
|
||||||
|
# disable clippies for now in early dev
|
||||||
|
# - id: rust-clippy
|
||||||
|
# name: Rust clippy
|
||||||
|
# entry: cargo clippy --lib --all-features --tests --
|
||||||
|
# pass_filenames: false
|
||||||
|
# types: [file, rust]
|
||||||
|
# language: system
|
||||||
Reference in New Issue
Block a user