From c1cda6ca6eb5edaa6b2b846551dfa764e39903b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Bl=C3=B6chlinger?= <91188043+mbloechli@users.noreply.github.com> Date: Thu, 20 Aug 2026 13:58:44 +0200 Subject: [PATCH] fix(pre-commit): use mirrors-clang-format instead of system binary --- .pre-commit-config.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2578ada..7a1756b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -68,15 +68,12 @@ repos: files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$ - - repo: local + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v14.0.6 hooks: - id: clang-format - name: clang-format - description: Format files with ClangFormat. - entry: clang-format-14 - language: system + args: ['-fallback-style=none'] files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$ - args: ['-fallback-style=none', '-i'] - repo: local hooks: - id: ament_cpplint