-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
extend-select argument not working with arithmetic operator whitespace E226 #1470
Comments
E226 is ignored by default: Line 16 in e944e09
|
@asottile Should I be able to enable it with Will you please provide a solution to enable E226 checking while retaining all default validations? |
I agree it seems odd, but it appears to be intentional given #1312
setting |
This makes sense. So
I'm not sure what part of #1312 indicates that |
I don't think I think the minimal setting to do what you want is to override the default |
I guess that's a pretty good workaround considering the list of default ignores is so short. Thanks.
Because I do imagine others might encounter the same problem, I'll try my best to make the case one more time. Two use cases for
Argument 1: I do not expect whether a rule is default selected/ignored to affect whether Argument 2: Ignore and select are opposites. If I Argument 3: The fact that the workaround is to re-ignore every other default ignore indicates to me that there's an issue here. The intuition behind |
note that I'm also not here to argue, but your arguments don't really work given that |
Flake8 installation
Bug report JSON:
My initial expectation is that flake8 should error when binary arithmetic operators are not surrounded by whitespace (
E226
). My further expectation is that ifE226
is not enabled by default I should be able to enable it as an additional check. It seems like there might be a bug breakingE226
validation and potentiallyextend-select
as well.My project uses a setup.cfg configure flake8. For that reason I would like to use
extend-select
to avoid calling flake8 in the command line twice. The following example reproduces the issue:Input file
a.py
:The text was updated successfully, but these errors were encountered: