-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
black introduces PEP 8 violation: operators should go at beginning of lines when possible #21
Labels
Comments
Oh, I never noticed PEP 8's change in direction here. This is a relatively new change, Knuth-inspired, no less: I can make this change in Black, although it's a surprising one to me. What do you think about this personally? |
This was always one of my biggest wtf's with PEP 8, so I'm excited they changed it :-) |
Yay! Thanks, @autophagy. |
ambv
pushed a commit
that referenced
this issue
Mar 19, 2018
jsf9k
added a commit
to cisagov/cyhy-mailer
that referenced
this issue
Apr 15, 2019
Also ignore W503 from flake8. It no longer agrees with PEP8. See these two links for details: psf/black#21 python/peps@c59c437
jsf9k
added a commit
to cisagov/skeleton-generic
that referenced
this issue
Apr 15, 2019
This is a warning about line breaks before binary operators. It no longer agrees with PEP8. See, for example, here: psf/black#21. Guido agrees here: python/peps@c59c437.
jsf9k
added a commit
to cisagov/ansible-role-oracle-java
that referenced
this issue
Dec 13, 2019
This is a warning about line breaks before binary operators. It no longer agrees with PEP8. See, for example, here: psf/black#21. Guido agrees here: python/peps@c59c437.
jonathanhaigh
added a commit
to jonathanhaigh/multiconfparse
that referenced
this issue
Jun 5, 2020
* E203: See psf/black#315 * W503: See psf/black#21
jonathanhaigh
added a commit
to jonathanhaigh/multiconfparse
that referenced
this issue
Jun 5, 2020
* E203: See psf/black#315 * W503: See psf/black#21
jonathanhaigh
added a commit
to jonathanhaigh/multiconfparse
that referenced
this issue
Jun 5, 2020
* E203: See psf/black#315 * W503: See psf/black#21
rnc
added a commit
to rnc/cekit
that referenced
this issue
Aug 2, 2022
rnc
added a commit
to cekit/cekit
that referenced
this issue
Aug 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, technically PEP 8 waffles a bit b/c it used to recommend the other version. But these days it says that operator-at-beginning "usually results in more readable code" and "For new code [operator-at-beginning] style is suggested".
The text was updated successfully, but these errors were encountered: