Comments (2)
It's possible. flake8-noqa needs to run last and get notified of all the other violations that happen. Since flake8 doesn't provide an API to do either, flake8-noqa needs to monkeypatch flake8.
If the monkeypatch is causing problems, it's likely due to either flake8 having changed its internal APIs, or something else is also monkeypatching flake8 in a way that conflicts.
I haven't seen this problem, but I also don't use VSCode. There could be an issue with how VSCode talks to flake8. Be sure you're using the current version of flake8-noqa as there was an issue when getting fed from stdin (#24)
- What version of flake8 are you running?
- What other flake8 plugins are you using (if any)?
- Are you seeing any issues when running flake8 from the command line?
- If you're using other flake8 plugins, can you try removing all of them except flake8-noqa and see if the problem persists?
from flake8-noqa.
Thank you for your reply.
Here is what i'm using:
6.1.0 (flake8-bugbear: 23.7.10, flake8-builtins: 2.1.0, flake8-comprehensions: 3.14.0, flake8-eradicate: 1.5.0, flake8-noqa: 1.3.2, mccabe: 0.7.0,
pep8-naming: 0.13.3, pycodestyle: 2.11.0, pyflakes: 3.1.0) CPython 3.11.4 on Windows
I also set NQA to run last in my .flake8
.
Looks also that i have an issue with this plugin and flake8-eradicate
because for code like this:
# win.eval("tk::PlaceWindow . center") # noqa: E800
i receive the error: "# noqa: E800" has no matching violations
(also from command line), and if i remove the noqa comment then i receive the error from flake8-eradicate
for dead code.
Disabling all plugins apart from noqa i receive:
.\my_calendar.py:32:5: NQA102 "# noqa: E800" has no matching violations
, and,
- errors disappear immediately, but in order to appear again i have to restart VSCode (actually i'm using VSCodium but it should be the same).
from flake8-noqa.
Related Issues (20)
- Issue with picking up noqa issues after other comment HOT 3
- require-code option should respect ignored codes
- Feature request: add option to warn about ignored codes
- Idea: "allowed_noqa" Config Option HOT 8
- Issue with noqa comment & commented out code w/ flake8-eradicate HOT 3
- multiline string with trailing comma causes false positive
- Support flake8==5 HOT 2
- Feature/rule request: require reason/description
- Superfluous and incorrect NQA102 errors
- Incorrect NQA102 error HOT 5
- Is there a way to ignore `NQA` errors? HOT 1
- LICENSE vs. COPYING.LESSER inconsistency HOT 4
- False positives when running with `--stdin-display-name` HOT 1
- Suggestion: deduplicate codes in example
- Misses comments within multi-line strings and comments HOT 3
- [Feature] Detect # noqa comments inside multiline strings
- Allow ignoring T000 (TODO marker) HOT 2
- Support flake8==7.0.0 HOT 4
- Sometimes noqa is not on the Exact Same Line HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flake8-noqa.