-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 and pycodestyle disagree about whitespace before : #354
Comments
pycodestyle is breaking PEP 8 here; see https://github.com/ambv/black#slices. |
Turn off E203 and W503 and you can continue to use Black and pycodestyle. |
Woops, my bad. Sorry for the noise |
For future readers (including, no doubt, me the next time I forget), @JelleZijlstra's link is now https://black.readthedocs.io/en/stable/the_black_code_style.html#slices. |
* Some dev * Various bug fixes * black formatting * retry build * Prior version of python use different import_lib resource * black formatting * pylint * black * Fix mypy * Ignore flake8 E203,W503 to work with black. See psf/black#354 * unused import * fix method
That link in 2021: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices Well, it is beta... ;) |
Operating system: Debian 9
Python version: python 3.6
Black version: 18.6b2
Does also happen on master: yes
Steps to reproduce:
This is unfortunate because I use
pycodestyle
for CI (not everyone can/want use to black yet), but I use black in my editor to format on save ...Of course, a workaround is to use
# fmt: off
, but I still think this is a bug in black and should be fixed.The text was updated successfully, but these errors were encountered: