-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (27 loc) · 821 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (27 loc) · 821 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
28
29
30
repos:
- repo: local
hooks:
- id: cargo-fmt
name: Check Rust formatting
entry: cargo fmt --all -- --check
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: Run clippy lints (all targets)
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: cargo-check-examples
name: Check examples compilation
entry: cargo check --examples --all-features
language: system
types: [rust]
pass_filenames: false
- id: cargo-test
name: Run tests (quick check)
entry: cargo test --lib --all-features
language: system
types: [rust]
pass_filenames: false