-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (27 loc) · 837 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (27 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
name: cargo fmt
description: Format Rust code with rustfmt
entry: cargo fmt --all --
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
description: Check Rust code with cargo check
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: cargo clippy
description: Lint Rust code with clippy
entry: bash -c 'cargo clippy --workspace -- -D warnings'
language: system
types: [rust]
pass_filenames: false