-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
71 lines (71 loc) · 2 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
---
repos:
- repo: /~https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: /~https://github.com/adrienverge/yamllint
rev: v1.33.0
hooks:
- id: yamllint
- repo: /~https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
- id: doc8
args: [--quiet, --max-line-length=100]
- repo: /~https://github.com/jorisroovers/gitlint
rev: v0.12.0
hooks:
- id: gitlint
stages: [commit-msg]
- id: gitlint
entry: gitlint
pass_filenames: false
stages: [manual]
- repo: /~https://github.com/bmorcos/pre-commit-hooks-cpp
rev: 9a5aa38207bf557961110d6a4f7e3a9d352911f9
hooks:
- id: cppcheck
args: [--suppress=objectIndex]
- repo: /~https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
# SPDX license headers and comments style should match rules defined in
# https://spdx.dev/ids/#how
#
# We are specifying "files: ''" so that top-level files are passed to
# hook. See /~https://github.com/Lucas-C/pre-commit-hooks/issues/52.
- id: insert-license
files: ''
types_or: [asm, c]
args:
- --license-filepath=.license-header
- --comment-style=//
- repo: /~https://github.com/cmake-lint/cmake-lint
rev: 1.4.3
hooks:
- id: cmakelint
args: [--linelength=100]
- repo: https://review.elvees.com/pre-commit-hooks
rev: 316005076123772cef195737b0cffb4b74ca2bd0
hooks:
- id: check-copyright
- repo: /~https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.3
hooks:
- id: clang-format
args:
- --style=file:.clang-format
exclude: |
(?x)^(
.*\.S|
.*\.txt|
.*\.in|
)$