From 49427ef8cd18b3f5d7ecde7ee3c4bbfb634400b6 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 22 Oct 2023 12:35:46 +0200 Subject: [PATCH] chore: add cmake-format and cmake-lint to pre-commit checks --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c952f7..95c4d1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,9 @@ repos: - id: clang-format - id: clang-tidy args: [-p=build] + + - repo: https://github.com/cheshirekow/cmake-format-precommit + rev: v0.6.13 + hooks: + - id: cmake-format + - id: cmake-lint