pylint ignore by directory

后端 未结 7 1486
南旧
南旧 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:41

    Adding:

    [MASTER]
    ignore=migrations
    

    To my .pylintrc works with pylint 0.25. My problems are with PyDev which (it seems) is not respecting my settings. This is due, I think, to the fact that it's running pylint per-file, which I think bypasses 'ignore' checks - whether for modules/directories or files. The calls to pylint from PyDev look like:

    /path/to/site-packages/pylint/lint.py --include-ids=y /path/to/project/migrations/0018_migration.py
    

提交回复
热议问题