pylint ignore by directory

后端 未结 7 1458
南旧
南旧 2020-12-20 11:04

Following is from pylint docs:

--ignore=
    Add  to the black list. It should be a base name, not a path. You may set t         


        
7条回答
  •  自闭症患者
    2020-12-20 11:15

    You can not give a path but only the "basename" of the directory. E.g. use --ignore=lib instead of --ignore-=appengine-toolkit/gaetk/lib.

    Problem is you will ignore all directories named lib.

提交回复
热议问题