What pylint options can be specified in inline comments?

前端 未结 1 507
情歌与酒
情歌与酒 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)
提交回复
热议问题