-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Whitespace/braces/#defines cleanup to macosx. #21690
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
Conversation
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.
I agree, this does look nicer.
This guide https://google.github.io/styleguide/objcguide.html also seems to imply that you could move a bunch of the start method braces up onto the method definition line too if you wanted. Although I'm guessing your linter didn't suggest that ;)
I personally like function braces on their own lines (https://www.kernel.org/doc/html/latest/process/coding-style.html#placing-braces-and-spaces ("Heretic people all over the world have claimed that this inconsistency is … well … inconsistent, but all right-thinking people know that (a) K&R are right and (b) K&R are right. Besides, functions are special anyway (you can’t nest them in C)." -- mostly the last part is relevant :-)) It's also consistent with PEP7. |
d5fd9ec
to
42c3753
Compare
Edit: additionally commented out and gave a more meaningful name to the |
The OSX failures seem to be caused by this PR. |
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.
I approve modulo fixing the build issues. @anntzer can self merge when CI is green.
oops, turns out there's some versions where you can't unset arg names, so I undid #21690 (comment). |
selfmerging per the above. |
PR Summary
This should not change any code logic.
I intentionally did not touch the parts currently worked on by the key-modifier and subplot_tool PRs.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).