-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (32 loc) · 1.22 KB
/
.pre-commit-config.yaml
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
39
# Based on https://github.com/doublify/pre-commit-rust
#
# To install pre-commit hooks:
# - install pre-commit; e.g. for MacOS with brew: brew install pre-commit
# - run: pre-commit install
repos:
- repo: local
hooks:
- id: cargo-fmt
name: "all: cargo fmt"
entry: cargo fmt
language: system
files: \.rs$
pass_filenames: false
- id: cargo-check-util
name: "util: cargo check"
entry: cd icon_generator && cargo check
language: system
files: \.rs$
pass_filenames: false
- id: cargo-check-no-features-lib
name: "lib: cargo check --release --bins --lib --examples"
entry: cd nrf52833_rgb_led_matrix && cargo check --release --bins --lib --examples
language: system
files: \.rs$
pass_filenames: false
- id: cargo-check-with-features-lib
name: "lib: cargo check --release --bins --lib --examples --all-features"
entry: cd nrf52833_rgb_led_matrix && cargo check --release --bins --lib --examples --all-features
language: system
files: \.rs$
pass_filenames: false