generated from secorolab/c_cpp_pkg_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
64 lines (57 loc) · 1.42 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
52
53
54
55
56
57
58
59
60
61
62
63
64
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.2
hooks:
- id: clang-format
name: clang-format
files: \.(cpp|hpp|c|h)$
- repo: local
hooks:
- id: c-lint
name: c-lint
entry: clang-tidy
language: system
files: \.(c|h|cc)$
args:
- -p
- ../../build/mmdm/
- -extra-arg=-isystem
- -extra-arg=../../install/include
- --fix
- --fix-errors
- --fix-notes
- id: cpp-lint
name: cpp-lint
entry: clang-tidy
language: system
files: \.(cpp|hpp)$
args:
- -p
- ../../build/mmdm/
- -extra-arg=-isystem
- -extra-arg=../../install/include
- id: cmake-format
name: cmake-format
entry: cmake-format
language: python
types: [cmake]
args: [--in-place]
- id: cmake-lint
name: cmake-lint
entry: cmake-lint
language: python
types: [cmake]
- repo: https://github.com/google/yamlfmt
rev: v0.10.0
hooks:
- id: yamlfmt
args: [-conf, .yamlfmt.yaml]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
args: [--fix]