From fc4d919a02a4f43b9e335ae623a80bb035c1f592 Mon Sep 17 00:00:00 2001 From: Brad Wu <26424577+wusatosi@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:25:27 -0400 Subject: [PATCH] using more up-to-date clang-format config --- .pre-commit-config.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 96e03fb..f6d09b0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,14 +9,20 @@ repos: - id: check-yaml - id: check-added-large-files - # Clang-format and Clang-tidy for C++ + # Clang-format for C++ + # This brings in a portable version of clang-format. + # See also: https://github.com/ssciwr/clang-format-wheel + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v18.1.8 + hooks: + - id: clang-format + types_or: [c++, c] + + # Clang-tidy for C++ # WARN: repo may not maintained anymore since 2021. - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: - - id: clang-format - args: [-i] # in-place formatting - additional_dependencies: ['clang-format==18.1.8'] - id: clang-tidy # Currently disabled, see: # https://github.com/beman-project/exemplar/pull/34#discussion_r1784958937