mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-30 21:39:45 -05:00
Ignore deps/* from formatting checks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user