-
Notifications
You must be signed in to change notification settings - Fork 21
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 config with a few hooks and mdformat #38
Conversation
This is ready to be reviewed. What do you think @rgommers @ngoldbaum @Fidget-Spinner @andfoy? Are you happy with these hooks/checks? |
I'm honestly not sure. The main changes to C code are:
The yaml changes look fine. Line breaks are sometimes worse, sometimes better. It's only a few changes, so I don't have strong feelings either way. I'll leave it to others, who will probably be writing more of the C code examples than me, to decide whether to merge. |
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 the bot is auto-fixing this stuff I don't mind much, but I don't think the changes are actually improving much, so maybe not worth the hassle?
Agreed with both your sentiments, I also have mixed feelings about this. My proposal would be to get rid of I like having the rest in place, if only for not really caring about trailing whitespace, keeping formatting consistent in |
I think this is ready for a final decision. |
Another argument for doing this is that we can add codespell, which currently has a high signal-to-noise ratio on the docs:
(I'll fix the spelling issue in a separate PR) |
Good point. Though |
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.
Looks like we have two in favor and no one against, so let's just give this a go! Thanks @lysnikolaou and @ngoldbaum.
No description provided.