diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02ca6e87..e398292e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,10 @@ repos: rev: v0.6.13 hooks: - id: cmake-format + exclude: | + (?x)^( + deps/.* + )$ - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.2 diff --git a/build-aux/.run-format.zsh b/build-aux/.run-format.zsh index 41b5f97b..88778f6f 100755 --- a/build-aux/.run-format.zsh +++ b/build-aux/.run-format.zsh @@ -79,6 +79,7 @@ invoke_formatter() { local -a source_files=(**/(CMakeLists.txt|*.cmake)(.N)) source_files=(${source_files:#(build_*)/*}) + source_files=(${source_files:#deps/*}) local -a format_args=() if (( _loglevel > 2 )) format_args+=(--log-level debug)