-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
51 lines (47 loc) · 1.11 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
40
41
42
43
44
45
46
47
48
49
50
51
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- id: no-commit-to-branch
args:
- --branch
- main
- id: check-merge-conflict
- repo: local
hooks:
- id: fmt-check
name: cargo fmt (check-only)
description: format files with "cargo fmt"
types:
- rust
language: system
entry: cargo fmt --
- id: build-stm32
name: cargo build stm32
description: build all stm32 binaries
types:
- rust
language: system
entry: cargo build --target thumbv7m-none-eabi --release --features bare-metal --bin stm32-*
pass_filenames: false
- id: build-x86
name: cargo build x86
description: build all x86 binaries
types:
- rust
language: system
entry: cargo build --release --bin reset_ctrl
pass_filenames: false
- id: tests
name: cargo test
description: build all x86 binaries
types:
- rust
language: system
entry: cargo test
pass_filenames: false