-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (53 loc) · 1.47 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
# 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
args: [--unsafe]
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
types_or: [c++, c]
exclude: ^z3_vendor/
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
args: [-c=.cmakelint.py]
exclude: etc/cmake/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-crlf
- id: remove-crlf
#- id: insert-license
# stages: [push]
# files: \.(clp|pddl)$
# args:
# - --license-filepath
# - .license_header
# - --comment-style
# - ;
# - --use-current-year
# - --allow-past-years
#- id: insert-license
# stages: [push]
# files: \.(cpp|hpp)$
# args:
# - --license-filepath
# - .license_header
# - --use-current-year
# - --allow-past-years