Skip to content

Commit 28e15ec

Browse files
committed
Adding docker-clang-format hook to .pre-commit-config.yaml
1 parent 021333a commit 28e15ec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ repos:
108108
entry: PyBind|Numpy|Cmake|CCache
109109
exclude: .pre-commit-config.yaml
110110

111+
- repo: local
112+
hooks:
113+
- id: docker-clang-format
114+
name: Docker Clang Format
115+
language: docker_image
116+
types:
117+
- c++
118+
entry: silkeh/clang:12
119+
args:
120+
- clang-format
121+
- -style=file
122+
- -i
123+
111124
- repo: local
112125
hooks:
113126
- id: check-style

0 commit comments

Comments
 (0)