Skip to content

Commit f072a8c

Browse files
committed
Adding docker-clang-format hook to .pre-commit-config.yaml
1 parent ed8cc00 commit f072a8c

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
@@ -101,6 +101,19 @@ repos:
101101
entry: PyBind|Numpy|Cmake|CCache
102102
exclude: .pre-commit-config.yaml
103103

104+
- repo: local
105+
hooks:
106+
- id: docker-clang-format
107+
name: Docker Clang Format
108+
language: docker_image
109+
types:
110+
- c++
111+
entry: silkeh/clang:12
112+
args:
113+
- clang-format
114+
- -style=file
115+
- -i
116+
104117
- repo: local
105118
hooks:
106119
- id: check-style

0 commit comments

Comments
 (0)