From 02e9b0d6d8eca6a28646eecdf79dac4c84c2b64d Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Sun, 27 Sep 2026 18:47:43 +0200 Subject: [PATCH] Ignore deps/* from formatting checks --- .pre-commit-config.yaml | 4 ++++ build-aux/.run-format.zsh | 1 + 2 files changed, 5 insertions(+) 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)