-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Flake8 and PEP8 has different rule for the whitespace around colon in a slice. #257
Comments
In GitLab by @sigmavirus24 on Oct 20, 2018, 09:58 http://flake8.pycqa.org/en/latest/internal/contributing.html#filing-a-bug |
In GitLab by @sigmavirus24 on Oct 20, 2018, 09:58 closed |
In GitLab by @cdetar on Oct 20, 2018, 13:52 Looks like PyCQA/pycodestyle#373 is the pertinent issue. |
In GitLab by @aniforprez on Feb 6, 2019, 22:22 Isn't the issue with flake8 since it's signalling errors for the slice syntax when it's actually pep8 compliant? Flake8 should not show the error because pycodestyle is doing the pep8 compliant thing. |
In GitLab by @asottile on Feb 6, 2019, 23:30 @aniforprez (from filing a bug linked above) (emphasis mine)
|
In GitLab by @aniforprez on Feb 10, 2019, 21:45 Ah all right I was not aware of that. My mistake |
In GitLab by @ki4070ma on Jan 30, 2020, 18:51 In below case, should flake8 report E203 error, right?
|
In GitLab by @ocavue on Sep 16, 2018, 09:31
description
I found that PEP8 has some complex rules for the whitespace around colon in a slice:
But flake8's rule seems to be simpler:
I found this issue because black formats my code into PEP8 style, which causes the E203 error.
I don't know the relationship between Flake8 and PEP8, so I'm not sure if it's a bug.
version
The text was updated successfully, but these errors were encountered: