diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc2dcf5b..1b40348a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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