From 8c9d8593e2f23afcafba499f5cbcffdc4f072e80 Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Tue, 19 Mar 2024 15:35:27 +0100 Subject: [PATCH] Add pyyaml dependency to cmake-format hook, required if .cmake-format.yaml is present - resolves #12 --- precommend/.pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/precommend/.pre-commit-config.yaml b/precommend/.pre-commit-config.yaml index f452e3f..52d9227 100644 --- a/precommend/.pre-commit-config.yaml +++ b/precommend/.pre-commit-config.yaml @@ -54,6 +54,8 @@ repos: hooks: # Apply formatting to CMake files - id: cmake-format + additional_dependencies: + - pyyaml # Apply linting to CMake files - id: cmake-lint