-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
97 lines (86 loc) · 2.32 KB
/
.pre-commit-config.yaml
File metadata and controls
97 lines (86 loc) · 2.32 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
exclude: |
(?x)^(
python/.*/auto_\w+/.*.py|
external/.*|
tests/testdata/script_with_error.py
)$
fail_fast: false
repos:
- repo: local
hooks:
- id: banned_keywords
name: banned_keywords
entry: ./scripts/pre_commit/prepare_commit_banned_keywords.sh
language: system
always_run: true
pass_filenames: true
- repo: local
hooks:
- id: class_names
name: class_names
entry: ./scripts/pre_commit/prepare_commit_class_names.sh
language: system
always_run: true
pass_filenames: true
- repo: local
hooks:
- id: spell_check
name: spell_check
entry: ./scripts/pre_commit/prepare_commit_spell_check.sh
language: system
always_run: true
pass_filenames: true
- repo: local
hooks:
- id: doxygen_test
name: doxygen_test
entry: ./scripts/pre_commit/prepare_commit_doxygen_test.sh
language: system
always_run: true
pass_filenames: true
- repo: local
hooks:
- id: code_fixup
name: code_fixup
entry: ./scripts/pre_commit/prepare_commit_code_fixup.sh
language: system
always_run: true
pass_filenames: true
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: ./scripts/pre_commit/prepare_commit_shellcheck.sh
language: system
always_run: true
pass_filenames: true
- repo: local
hooks:
- id: prepare_commit
name: prepare_commit
entry: ./scripts/pre_commit/prepare_commit.sh
language: system
always_run: true
pass_filenames: true
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
# if adding directory handled by clang-format
# you need to adapt prepare_commit and verify_indentation scripts accordingly
hooks:
- id: clang-format
types_or: [c++, c, c#]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# MUST run last
- repo: local
hooks:
- id: prepare_sip
name: prepare_sip
entry: ./scripts/pre_commit/prepare_commit_sip.sh
language: system
always_run: true
pass_filenames: true