From 073b6072b9eed7f509cccf619a085d645306da9f Mon Sep 17 00:00:00 2001 From: Dylan Donahue Date: Wed, 4 Sep 2024 19:34:44 -0400 Subject: [PATCH] updated --- .pre-commit-config.yaml | 33 +++++++++------------------------ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04a686c..3cbad36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,10 @@ repos: - - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v14.0.0 # Specify the version of clang-format you want to use - hooks: - - id: clang-format - name: Apply clang-format - description: Run clang-format to check and fix C/C++ files - types: [c, c++] - files: \.(c|h|cpp|hpp|cc|cxx|hxx)$ - args: - - --style=file - - --config=../Embedded-Base/clang-format - exclude: | - ^(?!.*Embedded-Base/\.clang-format-ignore).*$ - additional_dependencies: [] - - - repo: local - hooks: - - id: clang_restage - name: Restage formatted files - entry: clang_restage - language: system - pass_filenames: false - always_run: true - stages: [commit] \ No newline at end of file + - repo: local + hooks: + - id: clang_restage + name: Restage formatted files + entry: clang_restage + language: system + pass_filenames: false + always_run: true + stages: [pre-commit]