From f1e9a333e2028f05abc3c19855df9c12751666c9 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Mon, 22 Jan 2024 13:34:15 -0300 Subject: [PATCH] pre-commit: Change clang-format hook to the version-controlled repository The source repository, https://github.com/ssciwr/clang-format-wheel, describes how developers can pin the version of clang-format through an alternative hook. As @dragonmux has been having trouble running it, this commit changes the hook so that the matching version is used. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a621b927254..a6eb4db4152 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: '^upgrade/|^scripts/' # don't run hooks on scripts/ and upgrade/ repos: -- repo: https://github.com/pre-commit/mirrors-clang-format +- repo: https://github.com/ssciwr/clang-format-hook rev: v16.0.2 hooks: - id: clang-format