-
Notifications
You must be signed in to change notification settings - Fork 12
/
.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/