Skip to content

Commit 1e01df1

Browse files
committed
Specify version of Clang-format
- clang-format is not stable version-to-version - Hook is reformatting code already committed, it may be better to only change touched code
1 parent 12522db commit 1e01df1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@ repos:
6565
language: python
6666
files: \.(c|cc|cxx|cpp|cl|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|textproto|vert)$
6767
args: ['-i', '-fallback-style=none', '--style=file']
68-
additional_dependencies: ['clang-format']
68+
# specify version since clang-format is not stable version-to-version
69+
additional_dependencies: ['clang-format~=19.0.0']

0 commit comments

Comments
 (0)