Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dyldonahue committed Sep 4, 2024
1 parent d6447aa commit 073b607
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
- repo: local
hooks:
- id: clang_restage
name: Restage formatted files
entry: clang_restage
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]

0 comments on commit 073b607

Please sign in to comment.