summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2024-10-25 14:41:58 -0400
committerAdam Scott <ascott.ca@gmail.com>2024-10-25 15:11:36 -0400
commit25b28aa8877faafde9f1770f4afccab95d681d43 (patch)
tree0fac7939113bbb02329f34db2f63093f162d5a41 /.pre-commit-config.yaml
parent1671ec7ed58c337c936501ca26a7f5ba3847fad3 (diff)
downloadredot-engine-25b28aa8877faafde9f1770f4afccab95d681d43.tar.gz
Add .clang-format-glsl check
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 572eaf6791..29263f07ee 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,7 +12,17 @@ repos:
rev: v19.1.0
hooks:
- id: clang-format
- files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java|glsl)$
+ files: \.(c|h|cpp|hpp|cc|hh|cxx|hxx|m|mm|inc|java)$
+ types_or: [text]
+ exclude: |
+ (?x)^(
+ tests/python_build/.*|
+ platform/android/java/editor/src/main/java/com/android/.*|
+ platform/android/java/lib/src/com/.*
+ )
+ - id: clang-format
+ name: clang-format-glsl
+ files: \.(glsl)$
types_or: [text]
exclude: |
(?x)^(
@@ -20,6 +30,7 @@ repos:
platform/android/java/editor/src/main/java/com/android/.*|
platform/android/java/lib/src/com/.*
)
+ args: ["-style=file:misc/utility/.clang-format-glsl"]
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5