-
Notifications
You must be signed in to change notification settings - Fork 93
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
configuration for white-space #724
Conversation
@dvolgyes @casperdcl could you have a quick look at this and see if I made any mistakes? Suggestions welcome! |
a97383b
to
15d726f
Compare
I'd also recommend running & committing with something like |
great idea. What would we recommend for contributors with their own branches, especially on-going PRs? Would the following be fine?
Relevant here I guess is @NikEfth 's experiment mentioned here #98 (comment) |
1,2,3 seem fine. 4 isn't required. contributors in their own branches don't have to mess with |
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
opened a |
ok |
FYI I think you're using On |
would be great if we could add some editor config settings that (roughly) fit the |
ah. I thought I was being smart by output the default config and then editing it. Are you saying it'd be better to just add the keywords I listed in #98 (comment)? seems to make sense |
exactly |
if your editor (as it should) supports live-reloading files which are edited externally then it's not a problem. Attempting to commit will
Some editors do support |
Only use the non-default ones for the style, as otherwise it causes problems with different versions of clang-format
I've done that now. However, for whatever reason I had to uninstall the pre-commit hook, as it made garbage of the . |
No, that would've been because you ran |
I've just done a test of my own to make sure I'm understanding everything here.
You can see the results here: ashgillman#3 |
Okay, I take this back - line 8 is wrong. Instead - use |
that's great news. I suggest we merge this in stages:
|
I agree |
* fix pre-commit * add CI test
```sh | ||
cd /whereever/STIR | ||
pre-commit install | ||
``` |
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.
If you need to work with a branch that was forked prior to in inclusion of clang-format, you will need to temporarily disable/uninstall pre-commit again:
pre-commit uninstall
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.
Or git commit --no-verify
Build Error is just due to a timeout I believe |
@ashgillman want to do a PR with these? Or use the "suggestions" button. |
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org> Co-authored-by: Ashley Gillman <gillmanash@gmail.com>
a first step addressing #98 .
I have not run this on any existing files yet, but it does seem to work on new/changed files.