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

Add Clang Format pre-commit hook configuration #198

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

mirenradia
Copy link
Member

This PR resolves #106 and #192 by adding a configuration file for a pre-commit hook to check code conforms to the Clang Format style.

Instructions on how to set this up in your local clone of this repository are provided on the Clang Format wiki page.

This should not affect any users that haven't set up pre-commit hooks following the instructions above.

This uses https://pre-commit.com/ and currently just runs the
clang-format hook.
@mirenradia mirenradia added the enhancement Modification of existing feature/general improvement label Oct 28, 2021
@mirenradia mirenradia self-assigned this Oct 28, 2021
Copy link
Member

@KAClough KAClough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked on cosma7 following the wiki instructions, so it looks good to me.

@KAClough KAClough merged commit dd53963 into main Oct 29, 2021
@KAClough KAClough deleted the enhancement/clang_format_pre_commit_hook branch October 29, 2021 11:18
mirenradia added a commit to mirenradia/GRChombo-public that referenced this pull request Feb 3, 2023
This uses https://pre-commit.com/ and currently just runs the
clang-format hook.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Modification of existing feature/general improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add wiki page on clang-format pre-commit hook
2 participants