Skip to content

Commit

Permalink
chore(pre-commit): Limit clang-format to the cpp files in src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano committed Oct 18, 2024
1 parent 278331f commit b492bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
hooks:
- id: clang-format
args: ["--style=file", "-i"] # Use the .clang-format file for configuration and apply all fixes
files: \.(c|h|cpp|hpp)$
files: ^src/.*\.(c|h|cpp|hpp)$

# - repo: https://github.com/pocc/pre-commit-hooks
# rev: v1.3.5
Expand Down

0 comments on commit b492bf9

Please sign in to comment.