Skip to content

Commit ba3cedc

Browse files
EzraBrooksnbbrooks
andauthored
Fix clang-format pre-commit entry to not use system (#3623)
Isn't the whole point of pre-commit that the tooling self-installs? :) Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai>
1 parent e0ec451 commit ba3cedc

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ repos:
3737
hooks:
3838
- id: black
3939

40-
- repo: local
40+
- repo: https://github.com/pre-commit/mirrors-clang-format
41+
rev: v14.0.6
4142
hooks:
4243
- id: clang-format
43-
name: clang-format
44-
description: Format files with ClangFormat.
45-
entry: clang-format-14
46-
language: system
47-
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
48-
args: ['-fallback-style=none', '-i']
44+
types_or: [c++, c, cuda]
45+
args: ["-fallback-style=none"]
4946
- repo: https://github.com/codespell-project/codespell
5047
rev: v2.4.1
5148
hooks:

0 commit comments

Comments
 (0)