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

Quickfix to ignore rule? #1680

Closed
melMass opened this issue Aug 16, 2021 · 3 comments
Closed

Quickfix to ignore rule? #1680

melMass opened this issue Aug 16, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@melMass
Copy link

melMass commented Aug 16, 2021

Hi,

It would be great to add quick fixes to use inline ignores. I need rules to apply project-wide but sometimes (not fully typed stubs) I would like to ignore some lines from specific rules and looking for each rule number each time can be time-consuming.
I'm not even sure Pyright supports disabling rules inline but I guess it does as most linters.

I'm using referring to pylance (pyright) linter

Thanks

@jakebailey
Copy link
Member

Pylance/pyright don't support line-level diagnostic suppression except via the PEP 484 standard of # type: ignore. You can see #196 to discuss/vote on that.

As for adding a quick fix to ignore an error, that is an enhancement, yes.

@melMass
Copy link
Author

melMass commented Aug 16, 2021

Thanks!
So I guess the quick fixes could add the top level ignore like explained here: #196 (comment)

@jakebailey jakebailey added the enhancement New feature or request label Aug 16, 2021
@github-actions github-actions bot removed the triage label Aug 16, 2021
@judej judej closed this as completed Apr 20, 2022
@Avasam
Copy link

Avasam commented Sep 27, 2022

@judej This was marked as completed in april, but I still don't see quick fixes to add file or line suppression of a specific error. Even though both are now supported. I am on v2022.9.40
image

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

No branches or pull requests

4 participants