Skip to content

Commit f680626

Browse files
committed
style: use gersemi to format cmake files
1 parent 2a38440 commit f680626

7 files changed

Lines changed: 125 additions & 218 deletions

File tree

.cmake-format.py

Lines changed: 0 additions & 153 deletions
This file was deleted.

.gersemirc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
indent: 2
2+
line_length: 80
3+
list_expansion: favour-inlining
4+
warn_about_unknown_commands: false

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ repos:
2828
args: [--autofix, --no-sort-keys]
2929
- id: requirements-txt-fixer
3030
- id: trailing-whitespace
31-
- repo: https://github.com/cheshirekow/cmake-format-precommit
32-
rev: v0.6.13
31+
- repo: https://github.com/BlankSpruce/gersemi
32+
rev: 0.23.2
3333
hooks:
34-
- id: cmake-format
34+
- id: gersemi
3535
- repo: https://github.com/doublify/pre-commit-clang-format
3636
rev: 62302476d0da01515660132d76902359bed0f782
3737
hooks:

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ project(
55
VERSION 0.0.1
66
DESCRIPTION "Tool configuration template"
77
HOMEPAGE_URL https://github.com/b1ackviking/cpp-project-template
8-
LANGUAGES CXX)
8+
LANGUAGES CXX
9+
)
910

1011
include(cmake/defaults.cmake)
1112
include(FindThreads)

0 commit comments

Comments
 (0)