Skip to content

Commit 21af4b0

Browse files
committed
Switch clang-format to mirrors-clang-format and enable in CI
The cpp-linter-hooks package downloads a binary at runtime which fails on some platforms. mirrors-clang-format bundles the binary directly, so it works in pre-commit.ci. Remove clang-format from the ci skip list.
1 parent 7667c9e commit 21af4b0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
ci:
44
autoupdate_schedule: quarterly
5-
skip:
6-
- clang-format
75

86
repos:
97
- repo: https://github.com/python-jsonschema/check-jsonschema.git
@@ -113,10 +111,11 @@ repos:
113111
types:
114112
- file
115113
- rst
116-
- repo: https://github.com/cpp-linter/cpp-linter-hooks
117-
rev: v0.8.0
114+
- repo: https://github.com/pre-commit/mirrors-clang-format
115+
rev: v16.0.6
118116
hooks:
119117
- id: clang-format
118+
types_or: [c, c++]
120119
- repo: https://github.com/pre-commit/mirrors-mypy.git
121120
rev: v1.15.0
122121
hooks:

0 commit comments

Comments
 (0)