Skip to content
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

STYLE: Format CMake code #186

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhlegarreta
Copy link
Contributor

@jhlegarreta jhlegarreta commented Oct 22, 2023

Format CMake code.

Add a GHA workflow using pre-commit to make sure that the CMake code is formatted appropriately through the cmake-format tool and according to the specified config file.

Documentation:
https://pre-commit.com/hooks.html
https://github.com/cheshirekow/cmake-format-precommit

@jhlegarreta jhlegarreta force-pushed the FormatCMakeCode branch 2 times, most recently from 2fbea88 to 1541e34 Compare October 22, 2023 21:07
@jhlegarreta jhlegarreta marked this pull request as draft October 22, 2023 21:19
@jhlegarreta jhlegarreta force-pushed the FormatCMakeCode branch 16 times, most recently from 2e460e6 to 37e59ba Compare May 2, 2024 23:04
@jhlegarreta
Copy link
Contributor Author

Cross-referencing cheshirekow/cmake_format#335. Not sure how to make this work properly.

Format CMake code.

Add a GHA workflow using `pre-commit` to make sure that the CMake code
is formatted appropriately through the `cmake-format` tool and according
to the specified config file.

Documentation:
https://pre-commit.com/hooks.html
https://github.com/cheshirekow/cmake-format-precommit
@jhlegarreta
Copy link
Contributor Author

Works as expected with cmake-format-precommit v0.6.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant