Skip to content
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

Is there a way to ignore NQA errors? #22

Open
nkakouros opened this issue Feb 6, 2023 · 1 comment · May be fixed by #30
Open

Is there a way to ignore NQA errors? #22

nkakouros opened this issue Feb 6, 2023 · 1 comment · May be fixed by #30

Comments

@nkakouros
Copy link

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. But then flake8-noqa will complain:

NQA102 "# noqa: VT103" has no matching violations

If I try to silence NQA:

# noqa VT103,NQA102

then I get an error:

NQA102 "# noqa: VT103,NQA103" has no matching violations

Is there a way to instruct flake8-noqa to ignore a line?

@Avasam
Copy link

Avasam commented Oct 28, 2023

I'm in need of this as well.
Maybe if flake8-noqa understood adding the code group (in op's case: VT) to the ignore or extend-ignore field ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants