File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 1
- # See https://pre-commit.com for more information
2
- # See https://pre-commit.com/hooks.html for more hooks
3
1
repos :
4
- - repo : https://github.com/pre-commit/pre-commit-hooks
5
- rev : v3.2.0
6
- hooks :
7
- - id : trailing-whitespace
8
- - id : end-of-file-fixer
9
- - id : check-yaml
10
- - id : check-added-large-files
2
+ - repo : https://github.com/pre-commit/pre-commit-hooks
3
+ rev : v3.2.0
4
+ hooks :
5
+ - id : trailing-whitespace
6
+ id : end-of-file-fixer
7
+ id : check-yaml
8
+ id : check-added-large-files
11
9
12
10
# CMake formatting
13
11
- repo : https://github.com/cheshirekow/cmake-format-precommit
@@ -17,3 +15,10 @@ repos:
17
15
additional_dependencies : [pyyaml]
18
16
types : [file]
19
17
files : (\.cmake|CMakeLists.txt)(.in)?$
18
+
19
+ # Clang format the codebase automatically
20
+ - repo : https://github.com/pre-commit/mirrors-clang-format
21
+ rev : " v13.0.1"
22
+ hooks :
23
+ - id : clang-format
24
+ types_or : [c++, c]
You can’t perform that action at this time.
0 commit comments