-
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
[Critical] Black violates pep8 (E203) #544
Comments
I believe this is correct for slicing: See #280 and PyCQA/pycodestyle#373 |
Indeed. This is also documented in https://github.com/ambv/black#slices. |
chfw
added a commit
to moremoban/moban
that referenced
this issue
Oct 26, 2018
jstasiak
added a commit
to jstasiak/kotlang
that referenced
this issue
Feb 28, 2019
"E203 whitespace before ':'" ignored from now on, becuase [1] and [2]. [1] psf/black#544 [2] https://github.com/ambv/black#slices
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Operating system: MacOS
Python version: 3.6
Black version: 18.9b0
Does also happen on master: yes
Black is violating pep8 rules while formatting, it's introducing spaces in list slices:
Original code:
l = [i.name for i in x[_offset: _offset + _limit]]
Transformed code:
l = [i.name for i in x[_offset : _offset + _limit]]
The text was updated successfully, but these errors were encountered: