Skip to content
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 --select=E901 does not work [REPLACEMENT ISSUE] #517

Closed
asottile opened this issue Apr 3, 2021 · 1 comment
Closed

flake8 --select=E901 does not work [REPLACEMENT ISSUE] #517

asottile opened this issue Apr 3, 2021 · 1 comment

Comments

@asottile
Copy link
Member

asottile commented Apr 3, 2021

The original issue

Id: 162
Title: flake8 --select=E901 does not work

could not be created.
This is a dummy issue, replacing the original one. It contains everything but the original issue description. In case the gitlab repository is still existing, visit the following link to show the original issue:

TODO

@asottile
Copy link
Member Author

asottile commented Apr 3, 2021

In GitLab by @sigmavirus24 on Jul 7, 2016, 04:25

This has been reported before. It happens because in Flake8 2.x pycodestyle is the only thing that raises E901. Further, it only raises E901 when it cannot ast.compile a file which it only tries to do when AST checks are being run, e.g., F checks. This is why you see nothing.

We can't fix this in Flake8 and pycodestyle likely doesn't want to fix it. The good news is that this is plausible with Flake8 3.0 and should just work there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant