-
Notifications
You must be signed in to change notification settings - Fork 6
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
Issue with noqa comment & commented out code w/ flake8-eradicate #14
Comments
The problem here is in flake8-eradicate, when it sees the flake8-eradicate needs to return the error regardless of the Furthermore, looking at the underlying eradicate module that flake8-eradicate is using, it doesn’t seem to be properly parsing the |
BTW, this only started happening recently because I fixed flake8-noqa’s comment parsing. Previous versions didn’t see the |
Thank you for your time! |
Hi - I just ran into this issue today. I appreciate that you have already said that this is an issue in flake8-eradicate, but the corresponding issue in that project has been open for two years without response. In your README you say
I wondered if a workaround for E800 would be considered? Thank you! |
Hi @njiles, I took another look at this and it's a bit weirder than I first thought. It's not that the flake8-eradicate respects the A work-around that should work is to use flake8-eradicate's Of course if you can simplify that list removing anything you dont't use, e.g. |
That seems to work perfectly, thank you for the fast response! For any future readers: I have my configuration options stored in a .flake8 file rather than being passed via the command line; the syntax for the above suggestion is
(This is not documented in flake8-eradicate, see wemake-services/flake8-eradicate#281.) |
Hello. I'm using flake8, flake8-noqa & flake8-eradicate which finds commented out code and gives "E800 | Found commented out code". Until flake8-noqa==1.2.5 it worked fine, but now I encounter weird behaviour.
Python version
Dependencies:
flake8==4.0.1
flake8-eradicate==1.2.1
flake8-noqa==1.2.5
Current behaviour
code.py
flake8 run
code.py
flake8 run
Expected behaviour
code.py
flake8 run
code.py
flake8 run -- no error
Can you please look into that?
The text was updated successfully, but these errors were encountered: