1

With every new project i have the same issue with pylint "Missing module docstring warning"

I have already tried adding to settings.json

"python.linting.pylintArgs": [
        "--load-plugins=pylint_django",
        "--errors-only",
        "--disable=C0111"
    ]

and creating .pylintrc

[MASTER]
disable=
    C0114, # missing-module-docstring

The only working solution is to add to EVERY file. But that is tedious. is there a better way?

# pylint: disable=missing-module-docstring

With every project

Bogdan Mind
  • 65
  • 1
  • 1
  • 8

1 Answers1

0

For your reference,

C0114: missing-module-docstring
C0115: missing-class-docstring
C0116: missing-function-docstring

Add all of them to "python.linting.pylintArgs" in User Settings.json then reload window, see if it helps.

Molly Wang-MSFT
  • 7,943
  • 2
  • 9
  • 22
  • not helping( tried all variations could think already. "python.linting.pylintArgs": [ "--load-plugins=pylint_django", "--errors-only", "--disable=C0111,C0114,C0115,C0116" ] – Bogdan Mind Oct 01 '21 at 09:59
  • no matter what i specify, still showing error. tried "python.linting.pylintArgs": [ "--load-plugins=pylint_django", "--disable=C0114" – Bogdan Mind Oct 01 '21 at 10:03
  • The settings.json does not seem to be taken into account, maybe something is wrong with ``"python.linting.pylintArgs": `` ? – Pierre.Sassoulas Oct 04 '21 at 08:24
  • @BogdanMind. Does [this answer](https://stackoverflow.com/questions/4341746/how-do-i-disable-a-pylint-warning) helps? – Molly Wang-MSFT Oct 06 '21 at 08:11