-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
80 lines (79 loc) · 2.63 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
# SPDX-FileCopyrightText: Copyright DB Netz AG
# SPDX-License-Identifier: CC0-1.0
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: insert-license
name: Insert license headers (Markdown)
args:
- --detect-license-in-X-top-lines=15
- --license-filepath
- LICENSES/.license_header_cc0.txt
- --comment-style
- <!--| ~| -->
types_or: [markdown]
files: ''
- id: insert-license
name: Insert license headers (XML)
args:
- --detect-license-in-X-top-lines=15
- --license-filepath
- LICENSES/.license_header_cc0.txt
- --insert-license-after-regex
- ^<\?xml.*\?>
- --comment-style
- <!--| ~| -->
types_or: [xml]
files: ''
- id: insert-license
name: Insert license headers (C, C++)
args:
- --detect-license-in-X-top-lines=15
- --license-filepath
- LICENSES/.license_header.txt
- --comment-style
- /*| *| */
types_or: [c, c++]
files: ''
- id: insert-license
name: Insert license headers (Python)
args:
- --detect-license-in-X-top-lines=15
- --license-filepath
- LICENSES/.license_header.txt
- --comment-style
- '#'
types_or: [python]
files: ''
- id: insert-license
name: Insert license headers (CMake, Shell)
args:
- --detect-license-in-X-top-lines=15
- --license-filepath
- LICENSES/.license_header_cc0.txt
- --comment-style
- '#'
types_or: [gitmodules, gitignore, cmake, shell]
files: ''
- id: insert-license
name: Insert license headers (YAML)
args:
- --detect-license-in-X-top-lines=15
- --license-filepath
- LICENSES/.license_header_cc0.txt
- --insert-license-after-regex
- ^---$
- --comment-style
- '#'
types_or: [yaml]
files: ''
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
- repo: https://github.com/fsfe/reuse-tool
rev: v2.1.0
hooks:
- id: reuse