pre-commit: use versioned clang-format hook

This commit is contained in:
Maxime Vincent 2024-05-29 14:03:40 +02:00
parent 2d96f469c8
commit 135f80f6a8
No known key found for this signature in database
GPG key ID: B5A70D71BAF4CC04

View file

@ -5,10 +5,11 @@ repos:
hooks: hooks:
- id: remove-tabs - id: remove-tabs
exclude: "vendor-prefixes\\.txt$" exclude: "vendor-prefixes\\.txt$"
- repo: https://github.com/pocc/pre-commit-hooks - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v1.3.5 rev: v17.0.3
hooks: hooks:
- id: clang-format - id: clang-format
types_or: [c++, c]
args: args:
- -i - -i
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier