forked from hebench/reference-seal-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (42 loc) · 1.36 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in|py)$
- id: end-of-file-fixer
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in|py)$
- id: check-merge-conflict
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in|py)$
- id: mixed-line-ending
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in|py)$
- id: check-byte-order-marker
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in|py)$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: insert-license
files: \.(sh|py)$
args:
- --license-filepath
# defaults to: LICENSE.txt
- HEADER
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: insert-license
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl|h.in)$
args:
- --license-filepath
# defaults to: LICENSE.txt
- HEADER
- --comment-style
- // # defaults to: #
- repo: local
hooks:
- id: clang-format-9
name: clang-format-9
entry: clang-format-9
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx|inl)$
args: ["-i", "--style=file"]