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
31
32
33
34
35
36
37
38
# pre-commit configuration for local CI checks
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all -- --check
language: system
types:
pass_filenames: false
- id: cargo-check
name: cargo check (all-features)
entry: cargo check --lib --all-features
language: system
types:
pass_filenames: false
- id: cargo-check-no-std
name: cargo check (no_std)
entry: cargo check --lib --no-default-features --features libm --target thumbv7em-none-eabihf
language: system
types:
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --lib --all-features -- -W clippy::all
language: system
types:
pass_filenames: false
- id: cargo-test
name: cargo test
entry: cargo test
language: system
types:
pass_filenames: false