E800 shouldn't be triggered for `# noqa` lines
See original GitHub issueBug report
# noqa
comments are wrongly recognized as commented out code.
What’s wrong
This
# noqa: WPS437
mod._very_long_obj_name = _patched_very_long_obj_name
causes E800: Found commented out code
and it’s wrong. Sometimes
noqa comments don’t fit in the line-limit violations and it’s okay
to put them on the previous line.
How is that should be
No error.
System information
N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Ignoring Errors with Flake8 — flake8 3.1.1 documentation
Finally, if we have a particularly bad line of code, we can ignore every error using simply # noqa with nothing after it....
Read more >What does '# noqa' mean in Python comments? - Stack Overflow
Adding # noqa to a line indicates that the linter (a program that automatically checks code quality) should not check this line. Any...
Read more >Linksys E800 Router User Guide
User Guide. Linksys E800 ... How to set up port range triggering for online gaming ... Do not interrupt the upgrade process You...
Read more >810 Invoice/ 824 Application Advice - Exchange
invoice is received through EDI complete and correct. Total extended lines must match the Total Dollar amount. Including SAC (allowances) when applicable. • ......
Read more >(PDF) Fe xvii Soft X‐Ray Lines: Theory and Data Comparisons
PDF | Fe XVII soft X-ray spectral emission lines are examined using data ... spectra analyzed in this study started with a low-resolution....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve done some googling and haven’t found any mentions of using noqa on the previous line. So I might’ve confused it with pylint. FWIW I think I saw this rule barking at pylint comments too.
Done! https://github.com/myint/eradicate/blob/a7c2fcbaaa24a1cc0773babd88340a7a221a5971/eradicate.py#L57
New version will be released soon.