Giter Site home page Giter Site logo

flake8-noqa slow with VSCode about flake8-noqa HOT 2 OPEN

plinss avatar plinss commented on June 8, 2024
flake8-noqa slow with VSCode

from flake8-noqa.

Comments (2)

plinss avatar plinss commented on June 8, 2024

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.

steakhutzeee avatar steakhutzeee commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.