Browse Source

pre-commit: cmake-format and cmake-lint hooks [skip ci]

Victor Seva 9 months ago
parent
commit
a557b186fe
1 changed files with 6 additions and 1 deletions
  1. 6 1
      .pre-commit-config.yaml

+ 6 - 1
.pre-commit-config.yaml

@@ -11,4 +11,9 @@ repos:
   - repo: https://github.com/pre-commit/mirrors-clang-format
     rev: v15.0.7
     hooks:
-    - id: clang-format
+      - id: clang-format
+  - repo: https://github.com/cheshirekow/cmake-format-precommit
+    rev: v0.6.13
+    hooks:
+      - id: cmake-format
+      - id: cmake-lint