-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.15 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.15 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format -i
language: python
'types_or': [c++, c, c#, cuda, java, javascript, json, objective-c, proto, textproto, metal]
args: ["-style=file"]
require_serial: false
additional_dependencies: ['clang-format==18.1.1']
- id: cmake-format
name: cmake-format
entry: cmake-format
args: [--in-place]
language: python
types: [cmake]
additional_dependencies: ['cmakelang==0.6.13']
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: chmod
args: ['644']
files: \.md$
- id: insert-license
files: \.cpp|\.hpp$
args:
- --license-filepath
- ./LICENSE
- --comment-style
- ///
- --use-current-year
- --no-extra-eol