0

I'm trying to disable a specific warning w0611 ("Unused import %s") using pylintrc.

But I don't want to disable all warnings of that type, but only the one: "Unused import __fixer__". I used this import in a way that pylint doesn't understand and I want to keep that import.

W:  6, 0: Unused import __fixer__ (unused-import)

How can I disable this specific warning in the pylintrc. Is it possible?

9
  • 1
    That might be easier with a line-specific comment # pylint: disable=unused-import than in pylintrc. What is __fixer__, and why does it appear to be unused?
    – jonrsharpe
    Nov 26, 2014 at 9:15
  • I don't want to use a line-specific comment # pylint: disable=unused-import because i want it to let me know when i'm doing stuff like that.
    – Yair Saban
    Nov 26, 2014 at 10:08
  • I haven't understood what you meant
    – Yair Saban
    Nov 26, 2014 at 11:29
  • I want pylint to tell me when I'm using unnecessary imports
    – Yair Saban
    Nov 26, 2014 at 11:50
  • Yes, but if you put a comment on that specific (import __fixer__) line, that is the only line that warning will be suppressed for. See e.g. docs.pylint.org/…
    – jonrsharpe
    Nov 26, 2014 at 11:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.