-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
55 lines (50 loc) · 1.69 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-json
- id: check-xml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-added-large-files
- id: check-merge-conflict
# - id: check-ast #python
# Python
# - repo: https://github.com/psf/black
# rev: "23.7.0"
# hooks:
# - id: black
# - repo: https://github.com/pylint-dev/pylint
# rev: "v3.0.0a6"
# hooks:
# - id: pylint
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v19.1.2"
hooks:
- id: clang-format
- repo: https://github.com/cpplint/cpplint
rev: "2.0.0"
hooks:
- id: cpplint
args:
[
"--filter=-whitespace/indent,-whitespace/braces,-whitespace/comments,-whitespace/line_length,-whitespace/newline,
-build/include_subdir,-build/header_guard,-build/include_order,-build/c++17,-build/namespaces,
-readability/braces,-readability/todo,-legal/copyright,-runtime/references",
]
files: '\.h$|\.hpp$'
exclude: third_party/
- repo: https://github.com/cpplint/cpplint
rev: "2.0.0"
hooks:
- id: cpplint
args:
[
"--filter=-whitespace/indent,-whitespace/braces,-whitespace/comments,-whitespace/line_length,-whitespace/newline,
-build/include_subdir,-build/header_guard,-build/include_order,-build/c++17,-build/namespaces,-build/include_what_you_use,
-readability/braces,-readability/todo,-legal/copyright,-runtime/references",
]
files: '\.cpp$'
exclude: third_party/