From f269d63b35a6137aa317890683e23f72a4648372 Mon Sep 17 00:00:00 2001 From: ManifoldFR Date: Wed, 9 Oct 2024 11:35:48 +0200 Subject: [PATCH] Switch from dead cmake-format to gersemi Resolves #719 --- .gersemirc | 6 ++++++ .pre-commit-config.yaml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .gersemirc diff --git a/.gersemirc b/.gersemirc new file mode 100644 index 00000000..760c7bb9 --- /dev/null +++ b/.gersemirc @@ -0,0 +1,6 @@ +line_length: 80 +cache: true +indent: 2 +quiet: true +warn_about_unknown_commands: false +workers: 8 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b575a2d5..482fd96c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,10 +8,10 @@ repos: args: - --fix - id: ruff-format -- repo: https://github.com/cheshirekow/cmake-format-precommit - rev: v0.6.13 +- repo: https://github.com/BlankSpruce/gersemi + rev: 0.15.1 hooks: - - id: cmake-format + - id: gersemi exclude: | (?x)^( .*\.(h|hh|pc|py)\.cmake|