What pylint options can be specified in inline comments?

前端 未结 1 506
情歌与酒
情歌与酒 2021-02-19 17:19

I note that I can disable particular messages using a comment. For example, pylint by default complains about variable names of less than three letters. I can suppress that like

1条回答
  •  粉色の甜心
    2021-02-19 17:45

    In the module comments you can only enable/disable specific PyLint checks:

    # pylint: disable=wildcard-import, method-hidden
    # pylint: enable=too-many-lines
    

    0 讨论(0)
提交回复
热议问题