Replace moribund cmake-format with gersemi#169
Conversation
There was a problem hiding this comment.
Pull request overview
This PR modernizes the CMake formatting infrastructure by replacing the moribund cmake-format tool with gersemi. The change simplifies the CI workflows by leveraging gersemi's built-in directory traversal capabilities, eliminating the need for manual file discovery logic.
- Introduces
.gersemircconfiguration file with explanatory comments about the tool's opinionated nature - Updates both check and fix workflows to use
gersemicommands - Removes complex bash scripts for file discovery in favor of gersemi's built-in directory scanning
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.gersemirc |
Adds configuration file for gersemi with comments explaining migration from cmake-format |
.github/workflows/cmake-format-check.yaml |
Replaces cmake-format check logic with simplified gersemi command |
.github/workflows/cmake-format-fix.yaml |
Replaces cmake-format apply logic with simplified gersemi command |
f372cd9 to
be633c5
Compare
|
@phlexbot format |
|
No automatic fixes were necessary. |
1 similar comment
|
No automatic fixes were necessary. |
be633c5 to
46109ae
Compare
knoepfel
left a comment
There was a problem hiding this comment.
Thanks, @greenc-FNAL, for the PR. Just a couple comments below.
46109ae to
6cfe181
Compare
…nstead of `cmake-format`. The following changes have been made: - A new `.gersemirc` configuration file has been added. - The `cmake-format-check.yaml` workflow has been updated to use `gersemi --check`. - The `cmake-format-fix.yaml` workflow has been updated to use `gersemi --in-place`. The new implementation simplifies the workflow scripts by removing the need for a manual file search, relying instead on `gersemi`'s built-in directory traversal.
6cfe181 to
8581582
Compare
|
@knoepfel It seems like I might have unintentionally mixed in some changes I was looking at to enable invocation of some workflows from Cetmodules CI. I think I've managed to extract them. |
|
LGTM. Once this one is merged, are you able to submit a PR that applies |
The following changes have been made:
.gersemircconfiguration file has been added.cmake-format-check.yamlworkflow has been updated to usegersemi --check.cmake-format-fix.yamlworkflow has been updated to usegersemi --in-place.The new implementation simplifies the workflow scripts by removing the need for a manual file search, relying instead on
gersemi's built-in directory traversal.