forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (41 loc) · 1.27 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (41 loc) · 1.27 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
43
44
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
exclude: '^tpls/'
- id: forbid-submodules
- id: trailing-whitespace
exclude: '^tpls/'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 579d9fe3b1ee34ddd6ebc5def531f2f1acce622e # v16.0.0
hooks:
- id: clang-format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: e2c2116d86a80e72e7146a06e68b7c228afc6319 # v0.6.13
hooks:
- id: cmake-format
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: a30f0d816e5062a67d87c8de753cfe499672b959 # v1.5.5
hooks:
- id: insert-license
name: License and copyright headers in C++ files
args:
- --license-filepath
- scripts/license_header.txt
- --comment-style
- '//'
files: '\.(hh|hpp|cc|cpp|cppm|hip|cuh|cu)$'
exclude: '^tpls/'
- id: insert-license
name: License and copyright headers in C files
args:
- --license-filepath
- scripts/license_header.txt
- --comment-style
- '/*| *| */'
files: '\.[hc]$'
exclude: '^tpls/'