Skip to content

Commit a6fe0a1

Browse files
authored
Merge pull request #469 from blowekamp/use_cmake_gersemi
Enable and format with gersemi for CMake style
2 parents 5e05584 + 0188e82 commit a6fe0a1

486 files changed

Lines changed: 9955 additions & 5901 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gersemi.config

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Outcome configuration based on defaults,
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/0.19.3/gersemi/configuration.schema.json
3+
4+
disable_formatting: false
5+
extensions: []
6+
# default is indent of 4, ITK uses 2
7+
indent: 2
8+
line_length: 80
9+
# default is list_expansion: favour-inlining
10+
list_expansion: favour-expansion
11+
unsafe: false
12+
# default is warn_about_unknown_commands: true
13+
warn_about_unknown_commands: false

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ repos:
3333
args: ['--branch','main','--branch','dashboard','--branch','gh-pages']
3434
- id: trailing-whitespace
3535
exclude: "\\.(sha512|cid|svg|vtk|vtp|ipynb)$"
36+
- repo: https://github.com/BlankSpruce/gersemi
37+
rev: 0.19.3
38+
hooks:
39+
- id: gersemi
40+
args: [ '--config', '.gersemi.config', '-i' ]
41+
files: '.cmake$|CMakeLists.txt'
3642
- repo: https://github.com/pre-commit/mirrors-clang-format
3743
rev: v19.1.7
3844
hooks:

CMake/DownloadDoxygen.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
file(DOWNLOAD https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/latest/InsightDoxygenDocHtml-latest.tar.gz
2-
${ITKDoxygen_TEMP_DIR}/itk-doxygen.tar.gz SHOW_PROGRESS
3-
)
1+
file(
2+
DOWNLOAD
3+
https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/latest/InsightDoxygenDocHtml-latest.tar.gz
4+
${ITKDoxygen_TEMP_DIR}/itk-doxygen.tar.gz
5+
SHOW_PROGRESS
6+
)

CMake/DownloadDoxygenTAG.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
file(DOWNLOAD https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/latest/InsightDoxygenDocTag-latest.gz
2-
${ITKDoxygenTAG_TEMP_DIR}/InsightDoxygen.tag.gz SHOW_PROGRESS
3-
)
1+
file(
2+
DOWNLOAD
3+
https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/latest/InsightDoxygenDocTag-latest.gz
4+
${ITKDoxygenTAG_TEMP_DIR}/InsightDoxygen.tag.gz
5+
SHOW_PROGRESS
6+
)

CMake/DownloadDoxygenXML.cmake

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
file(DOWNLOAD https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/latest/InsightDoxygenDocXml-latest.tar.gz
2-
${ITKDoxygenXML_TEMP_DIR}/itk-doxygen-xml.tar.gz SHOW_PROGRESS
3-
)
1+
file(
2+
DOWNLOAD
3+
https://github.com/InsightSoftwareConsortium/ITKDoxygen/releases/download/latest/InsightDoxygenDocXml-latest.tar.gz
4+
${ITKDoxygenXML_TEMP_DIR}/itk-doxygen-xml.tar.gz
5+
SHOW_PROGRESS
6+
)

0 commit comments

Comments
 (0)