-
Notifications
You must be signed in to change notification settings - Fork 845
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.46 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
56
57
58
59
60
61
62
repos:
# Official repo for the clang-format hook
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v15.0.7"
hooks:
- id: clang-format
exclude: |
(?x)^(
^Common/include/CConfig.hpp|
^Common/include/option_structure.hpp|
^Common/src/CConfig.cpp|
^SU2_CFD|
^externals|
^subprojects|
^TestCases|
^legacy
)
types_or: [c++, c]
# black repo for python formatting
- repo: https://github.com/ambv/black
rev: 22.6.0
hooks:
- id: black
exclude: |
(?x)^(
^SU2_CFD|
^externals|
^subprojects|
^TestCases|
^legacy
)
# Official repo for default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: mixed-line-ending
exclude: |
(?x)^(
^SU2_CFD|
^externals|
^subprojects|
^TestCases|
^legacy
)
- id: trailing-whitespace
exclude: |
(?x)^(
^SU2_CFD|
^externals|
^subprojects|
^TestCases|
^legacy
)
- id: end-of-file-fixer
exclude: |
(?x)^(
^SU2_CFD|
^externals|
^subprojects|
^TestCases|
^legacy
)