Ignore deps/* from formatting checks

This commit is contained in:
WarmUpTill
2026-09-27 18:47:43 +02:00
committed by WarmUpTill
parent ee7a2e764f
commit 02e9b0d6d8
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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)