flake8-noqa
flake8-noqa copied to clipboard
flake8 plugin to validate #noqa comments - Mirror of https://gitlab.linss.com/open-source/flake8/flake8-noqa
Closes #22 . Allows interoperability with tools like Vulture and Ruff. Naming based on https://docs.astral.sh/ruff/settings/#external As part of my changes I've made set manipulations in the `violations` method more concise...
I run `vulture` to test my code. An error I get from vulture is VT103: ``` my-lib.py:12: unused function 'method-name' (60% confidence) ``` I can silence this with `noqa VT103`....
Hello! I think a great addition to this library would be an `allowed_noqa` config option (name fungible 😆), which allows a project lead to specify a global set of noqa...
Hello, I just started using flake8-noqa. I use VSCode and it's Flake8 extension, that points to my .flake8 config file. I noted that even if I fix the issues pointed...
Flake8 apparently respects `# noqa` comments inside multiline strings. Those aren't really comments. Flake8-noqa should detect and report those (and recommend the `# noqa` gets moved to the end of...
it's continue of https://github.com/plinss/flake8-noqa/issues/2 Problem still exist with B902 (flake8-blind-except) A003 (flake8-builtins), which was in last comment, now works correctly
For example: `# noqa: T201` is not allowed, but `# noqa: T201: Print found; Printing information about logging destination` is. This is useful for people reading the code, so they...
If a code is ignored by configuration, plugin should report as unnecessary noqa code (when option is set) Option should be able to always require ignored codes, always reject ignored...
When recommending codes to insert, should ignore codes that are ignored by configuration