From ca270a49369d407f4150cfcd643e10b267726937 Mon Sep 17 00:00:00 2001 From: Adrien Cacciaguerra Date: Thu, 26 Nov 2026 16:46:43 +0100 Subject: [PATCH] ci: install clang-format from the pre-commit mirror cpp-linter-hooks v0.8.1 downloads a prebuilt clang-format-18 binary at run time, which now fails with FileNotFoundError, so lint fails on a cold pre-commit cache. The mirror installs the same clang-format 18.1.8 from PyPI at the pinned rev and reformats no file. Co-Authored-By: Claude Opus 5.5 --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd34238..e7cca1b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,8 +10,8 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - - repo: https://github.com/cpp-linter/cpp-linter-hooks - rev: v0.8.1 + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v18.1.8 hooks: - id: clang-format files: \.(cpp|cc|cxx|h|hpp)$