8

I have updated pylint version Now it is complaining for no-self-use checker on .pylintrc file.

************* Module ../../.pylintrc
.pylintrc:1:0: E0015: Unrecognized option found: no-space-check (unrecognized-option)
.pylintrc:1:0: E0012: Bad option value for --disable. Don't recognize message no-self-use. (bad-option-value)

How can I fix it? disable comments does not work. What should I change it for?

1 Answer 1

7

From the release note for 2.14:

Moved no-self-use check to optional extension. You now need to explicitly enable this check using load-plugins=pylint.extensions.no_self_use.

For the unrecognized option you can remove it from the configuration it was used by a message related to formatting that was removed in pylint 2.6 and is now detected because 2.14 got better at parsing the conf and warn you.

2
  • 2
    what about no-space-check? do you know where it was moved to? Commented Jun 6, 2022 at 9:44
  • 3
    Yes The no-space-check option has been removed, it's no longer possible to consider empty line like a trailing-whitespace by using clever options. (pylint.pycqa.org/en/latest/whatsnew/2/2.6/…) Commented Jun 6, 2022 at 9:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.