How do I disable “missing docstring” warnings at a file-level in Pylint?

前端 未结 11 724
情书的邮戳
情书的邮戳 2020-12-12 14:18

Pylint throws errors that some of files are missing docstrings. I try and add docstrings to each class, method and function but it seems that Pylint also checks that files s

11条回答
  •  盖世英雄少女心
    2020-12-12 14:52

    It's late, but still I found it useful. So sharing. Found this here.

    You can add "--errors-only" flag for pylint to disable warnings.

    To do this, go to settings. Edit the following line:

    "python.linting.pylintArgs": []

    As

    "python.linting.pylintArgs": ["--errors-only"]

    And you are good to go!

提交回复
热议问题