From a88ea42cc355567bc6a0bccd5eb7c8a82b0b3644 Mon Sep 17 00:00:00 2001 From: kwu130 Date: Sat, 11 Apr 2026 09:31:12 +0800 Subject: [PATCH] refactor(lint): replace local clang-format hook with official pre-commit mirror --- .pre-commit-config.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb88864..3611540 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,6 @@ repos: - - repo: local - hooks: - - id: clang-format - name: clang-format - entry: clang-format -i - language: system - files: \.(cpp|cc|c|cxx|h|hpp|hxx)$ + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v22.1.2 + hooks: + - id: clang-format + files: \.(cpp|cc|c|cxx|h|hpp|hxx)$