-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
57 lines (51 loc) · 1.57 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (51 loc) · 1.57 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
45
46
47
48
49
50
51
52
53
54
55
56
57
# prek configuration
# https://github.com/ahal/prek
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-merge-conflict
- id: check-case-conflict
- id: mixed-line-ending
args: ['--fix=lf']
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.3
hooks:
- id: clang-format
types_or: [c++, c]
- repo: https://github.com/cpplint/cpplint
rev: 2.0.2
hooks:
- id: cpplint
args:
- '--filter=-build/include_subdir,-build/include_order,-build/c++17,-build/include_what_you_use,-build/namespaces,-legal/copyright,-readability/todo,-runtime/references,-whitespace/indent,-whitespace/line_length'
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies: [tomli]
- repo: https://github.com/cmake-lint/cmake-lint
rev: 1.4.3
hooks:
- id: cmakelint
args: ['--filter=-linelength,-readability/wonkycase']
- repo: local
hooks:
- id: committed
name: committed (conventional commits)
language: system
entry: committed
stages: [commit-msg]
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.27.0
hooks:
- id: gersemi
ci:
autofix_prs: true
autoupdate_commit_msg: "chore(deps): update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"