pylint

在代码中关闭某个告警消息:

#pylint: disable=invalid-name
其中 invalid-name 可以参考 pylint 报告出来的 CODE和NAME

模块级别:

#! usr/bin/python
#pylint: disable=invalid-name
 
''' Docstring... '''

行级别:

def file_travesal(dirtectory='.', file_list=[]): # pylint: disable=W0102
    '''
    Get file list from the directory including files in its subdirectories.
    '''

猜你喜欢

转载自blog.csdn.net/weixin_33845881/article/details/87213315