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 pre-commit configuration #126
Conversation
@bdice I adapted your pre-commit configuration for HOOMD and tested on fresnel (I wanted to test on a smaller repository where I could run the formatters first). Have a look. I switched to using conda to install clang-format and combined it into the main pre-commit configuration file using a |
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.
Nice! I had a couple minor questions but otherwise LGTM.
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
This saves 2 levels of indentation when clang-format indents the arena
Will enable pre-commit.ci for the other checks
Well, so much for the I'll move that config to a separate file as you do in freud for now. |
@joaander You can skip it! https://pre-commit.ci/#configuration-skip ci:
skip: [clang-format] |
Excellent find, I'll do that. |
@joaander With the power of teamwork and enough time, we will read all of the documentation. 😆 |
It still seems to try installing the environment :( - https://results.pre-commit.ci/run/github/147663951/1620141512.9i1t5SAyQD6inHgCJ_hhlw |
This is a known and fixed issue: pre-commit-ci/issues#53 |
Yup. v2.12.1 came out 18 days ago, and that PR was merged 15 days ago. |
Apply pre-commit formatters
Description
Replace existing style checks with pre-commit configuration file.
Motivation and context
Pre-commit is popular.
Using fresnel as a test before making the change in HOOMD.
Checklist: