-
Notifications
You must be signed in to change notification settings - Fork 32
/
.pre-commit-config.yaml
30 lines (30 loc) · 1.06 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: fix-encoding-pragma
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.29.0
hooks:
- id: yapf
- repo: https://github.com/doublify/pre-commit-clang-format.git
rev: f4c4ac5948aff384af2b439bfabb2bdd65d2b3ac
hooks:
- id: clang-format
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.7
hooks:
- id: insert-license
files: (python|test)/.*\.py$
args: ['--license-filepath', '.github/license-header']
- id: insert-license
files: src/.*\.(h|c)pp$
args: ['--license-filepath', '.github/license-header', '--comment-style', '/*| *| */' ]
- id: insert-license
files: \.(h|c)$
args: ['--license-filepath', '.github/license-header', '--comment-style', '/*| *| */' ]
- id: insert-license
files: \.(f|F)90$
args: ['--license-filepath', '.github/license-header', '--comment-style', '!' ]