exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
13.96k stars 498 forks source link

Add a pre-commit config to correct style issues #470

Closed kurtmckee closed 7 months ago

kurtmckee commented 10 months ago

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[bot] commented 10 months ago

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 commented 9 months ago

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

kurtmckee commented 8 months ago

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