1
+ default_language_version :
2
+ python : python3
3
+
1
4
exclude : |
2
5
(?x)^(
3
6
.*thirdparty/.*|
9
12
rev : v17.0.6
10
13
hooks :
11
14
- id : clang-format
12
- files : \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java|glsl)$
15
+ files : \.(c|h|cpp|hpp|cc|hh| cxx|hxx |m|mm|inc|java|glsl)$
13
16
types_or : [text]
14
17
exclude : |
15
18
(?x)^(
@@ -79,14 +82,17 @@ repos:
79
82
- id : make-rst
80
83
name : make-rst
81
84
language : python
82
- entry : python3 doc/tools/make_rst.py doc/classes modules platform --dry-run --color
85
+ entry : python doc/tools/make_rst.py
86
+ args : [doc/classes, modules, platform, --dry-run, --color]
83
87
pass_filenames : false
84
88
files : ^(doc/classes|.*/doc_classes)/.*\.xml$
85
89
86
90
- id : doc-status
87
91
name : doc-status
88
92
language : python
89
- entry : python3 doc/tools/doc_status.py
93
+ entry : python doc/tools/doc_status.py
94
+ args : [doc/classes, modules/*/doc_classes, platform/*/doc_classes]
95
+ pass_filenames : false
90
96
files : ^(doc/classes|.*/doc_classes)/.*\.xml$
91
97
92
98
- id : eslint
@@ -126,8 +132,8 @@ repos:
126
132
- id : copyright-headers
127
133
name : copyright-headers
128
134
language : python
129
- entry : python3 misc/scripts/copyright_headers.py
130
- files : \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java)$
135
+ entry : python misc/scripts/copyright_headers.py
136
+ files : \.(c|h|cpp|hpp|cc|hh| cxx|hxx |m|mm|inc|java)$
131
137
exclude : |
132
138
(?x)^(
133
139
core/math/bvh_.*\.inc$|
@@ -141,19 +147,14 @@ repos:
141
147
- id : header-guards
142
148
name : header-guards
143
149
language : python
144
- entry : python3 misc/scripts/header_guards.py
145
- files : \.(h|hpp)$
146
- exclude : |
147
- (?x)^(
148
- .*/thread\.h$|
149
- .*/platform_config\.h$|
150
- .*/platform_gl\.$h
151
- )
150
+ entry : python misc/scripts/header_guards.py
151
+ files : \.(h|hpp|hh|hxx)$
152
+ exclude : ^.*/(thread|platform_config|platform_gl)\.h$
152
153
153
154
- id : file-format
154
155
name : file-format
155
156
language : python
156
- entry : python3 misc/scripts/file_format.py
157
+ entry : python misc/scripts/file_format.py
157
158
types_or : [text]
158
159
exclude : |
159
160
(?x)^(
@@ -170,7 +171,7 @@ repos:
170
171
- id : dotnet-format
171
172
name : dotnet-format
172
173
language : python
173
- entry : python3 misc/scripts/dotnet_format.py
174
+ entry : python misc/scripts/dotnet_format.py
174
175
types_or : [c#]
175
176
176
177
# End of upstream Godot pre-commit hooks.
0 commit comments