-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove most instances of pep8 E502 (redundant backslashes). #10196
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
Seems you missed one, though. |
Intentionally left: most surrounding lines in that specific context also have backslashes, so I felt breaking the style was not worth it (unless using parentheses for wrapping throughout). |
But it's not passing now ;) |
3767e68
to
d5fdebb
Compare
Oh, missed that, fixed. I meant that I left a "redundant" backslash (and the exclusion) in geo.py for the reasons stated above. |
proj = proj3d.proj_trans_points([self._position3d, \ | ||
self._position3d + self._dir_vec], renderer.M) | ||
proj = proj3d.proj_trans_points( | ||
[self._position3d, self._position3d + self._dir_vec], renderer.M) |
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.
Probably should break before the second arg 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.
the bracketed parts doesn't fit on the same line as "proj_trans_points(" and I think we have plenty of cases where the function is on one line and all the arguments on the next line.
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 mostly say to break here because the first arg is a list using commas for "other" things than separating function arguments.
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'll follow the vote of the next reviewer.
PR Summary
PR Checklist