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

Disable unused imports warning per-file #22114

Open
OverLordGoldDragon opened this issue May 22, 2024 · 0 comments
Open

Disable unused imports warning per-file #22114

OverLordGoldDragon opened this issue May 22, 2024 · 0 comments

Comments

@OverLordGoldDragon
Copy link
Contributor

I've read that # flake8: noqa, put on top of file, should disable all imported but unused warnings throughout the file. But for me, it only disables warnings on per-line basis. Also, that # pylint: disable=unused-import should disable it on per-line basis, but doesn't for me, yet docs say Spyder uses pylint.

  1. What linters does Spyder use?
  2. Can I disable warnings per-file with # directives?

Note, I've also tried .pylintrc in %USERPROFILE% (Windows 11) with

[MESSAGES CONTROL]
disable=relative-beyond-top-level,unused-import
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

No branches or pull requests

1 participant