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 a pre-commit config to correct style issues #470

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

kurtmckee
Copy link
Contributor

This PR introduces a pre-commit config so that file changes are linted and fixed (including running clang-format) prior to committing changes.

During development, developers can install pre-commit (the tool) and then install the git pre-commit hook by running pre-commit install in the cloned codon directory. Then, before git commits changes, it will automatically run pre-commit (the tool) which will run all of the configured hooks.

NOTE: If this merges, I strongly recommend setting up pre-commit.ci to auto-fix incoming PRs if there are style issues, and to keep the pre-commit hooks up-to-date.

@cla-bot
Copy link

cla-bot bot commented Sep 5, 2023

Thank you for your pull request. We require contributors to agree to our Contributor License Agreement (https://exaloop.io/cla.txt), and we don't have @kurtmckee on file. In order for us to review and merge your code, please email info@exaloop.io to get yourself added.

@kurtmckee
Copy link
Contributor Author

kurtmckee commented Oct 6, 2023

The CLA has been signed. If this PR is desirable but needs tweaking, please let me know!

@kurtmckee
Copy link
Contributor Author

Rebased on develop and updated the pre-commit hook versions.

@arshajii arshajii merged commit 32a624b into exaloop:develop Dec 5, 2023
5 checks passed
@kurtmckee kurtmckee deleted the add-pre-commit-config branch December 5, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants