Skip to content

Commit

Permalink
Specify version of Clang-format
Browse files Browse the repository at this point in the history
- clang-format is not stable version-to-version
- Hook is reformatting code already committed,
  it may be better to only change touched code
  • Loading branch information
hfp committed Sep 24, 2024
1 parent 12522db commit 1e01df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ repos:
language: python
files: \.(c|cc|cxx|cpp|cl|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|textproto|vert)$
args: ['-i', '-fallback-style=none', '--style=file']
additional_dependencies: ['clang-format']
# specify version since clang-format is not stable version-to-version
additional_dependencies: ['clang-format~=19.0.0']

0 comments on commit 1e01df1

Please sign in to comment.