-
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
Superfluous and incorrect NQA102
errors
#2
Comments
Thanks for the report, can you give example code that generates the NQA102 errors that don't have don't have Looking at the bugbear code it appears that it doesn't send violations for line based checks with |
I noticed the same issue today. It looks like a reporting issue rather than an issue with the checks. Here is one example.
The first two lines are correct but the subsequent lines are incorrect. They appear to be repeated reporting of the first file's errors attributed to the other files - notice that the line numbers are the same across all 3 files? |
Interesting, can you give an example file that has the errors? I don't need your entire source files, just enough to reproduce the error. |
A simple example is a module with just this: def my_func():
pass # noqa: W605 Any file checked after will have the same error reported, even if it's empty. Edit: add environment info $ flake8 --version
3.8.3 (flake8-noqa: 1.0.5, mccabe: 0.6.1, pycodestyle: 2.6.0, pyflakes: 2.2.0)
CPython 3.6.12 on Linux |
Thanks for the info, found the issue and fixed it. A new version will be available shortly. While I was there I found some other tweaks I never landed, so picked up those too. |
Thanks @plinss it is working very nicely now. |
I'm experiencing the same with flake8-noqa==1.1.0 (from PyPI). Code: print(f"Downloading {filename}...") # NOQA: T001 flake8 (with flake8-print==4.0.0, which causes the T001):
|
Oh I see the |
Hi! First of all, thanks for this great plugin. I tried setting it up right away, but am running into some issues. Specifically, it shows me
NQA102 (flake8-noqa) "# noqa: B009" has no matching violations
errors for files that doesn't even have anynoqa
statements inside.This is what flake8 gives me:
But here are all files with
B009
:Any ideas?
The text was updated successfully, but these errors were encountered: