Skip to content

Commit

Permalink
chore(ci): Ensure clang-format version is consistent in pre-commit (#696
Browse files Browse the repository at this point in the history
)

Before this PR, running `pre-commit run --all-files` was not sufficient
to result in passing CI (particularly on MacOS, where the brew installed
clang-format is considerably newer than the CI-installed clang-format).
This PR just makes the version that had been enforced in CI part of the
configuration.
  • Loading branch information
paleolimbot authored Dec 27, 2024
1 parent dd437a9 commit 2d5276a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ repos:
exclude: "^r/.*?/_snaps/.*?.md$"
- id: trailing-whitespace
exclude: "^r/.*?/_snaps/.*?.md$"
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
hooks:
- id: clang-format
args: [-i]
types_or: [c, c++]
exclude: "(^thirdparty/.*$)|(flatcc_generated.h)"
- id: clang-format
types_or: [c, c++]
exclude: "(^thirdparty/.*$)|(flatcc_generated.h)"
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
Expand Down Expand Up @@ -75,5 +74,3 @@ repos:
additional_dependencies: ['meson==1.6.0']
entry: meson format -i
files: meson.build

exclude: "^dist"

0 comments on commit 2d5276a

Please sign in to comment.