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
- Raised minimum_pre_commit_version.
  • Loading branch information
hfp committed Sep 24, 2024
1 parent 12522db commit 96580b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

exclude: '^tools/(build_utils/fypp)'
fail_fast: false
minimum_pre_commit_version: 3.2.0
minimum_pre_commit_version: 3.8.0
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.5'
Expand Down Expand Up @@ -65,4 +65,4 @@ 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']
additional_dependencies: ['clang-format~=14.0.0']

0 comments on commit 96580b3

Please sign in to comment.