Skip to content

Commit ffa56a1

Browse files
committed
add pre-commit yaml
1 parent d9a9dc5 commit ffa56a1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+
#
3+
# SPDX-License-Identifier: Unlicense
4+
5+
repos:
6+
- repo: local
7+
hooks:
8+
- id: codespell
9+
name: codespell
10+
entry: codespell
11+
types_or: [c, header]
12+
language: system
13+
14+
- id: unit-test
15+
name: unit-test
16+
files: ^(src/|test/unit-test/)
17+
entry: sh -c "cd test/unit-test && ceedling test:all"
18+
pass_filenames: false
19+
types_or: [c, header]
20+
language: system

0 commit comments

Comments
 (0)