-
Notifications
You must be signed in to change notification settings - Fork 10
Replace moribund cmake-format with gersemi
#169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Replace moribund cmake-format with gersemi
#169
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
…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.
f372cd9 to
be633c5
Compare
|
@phlexbot format |
|
No automatic fixes were necessary. |
1 similar comment
|
No automatic fixes were necessary. |
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.