question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

E800 shouldn't be triggered for `# noqa` lines

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
webknjazcommented, Jun 11, 2020

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.

0reactions
sobolevncommented, Feb 6, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found