How do I disable “TODO” warnings in pylint?

后端 未结 3 619
一生所求
一生所求 2021-02-18 20:50

When running pylint on a python file it shows me warnings regarding TODO comments by default. E.g.:

************* Module foo
W:200, 0: TODO(SE): fi

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-18 21:26

    in the generated config file, you should see a section

      [MISCELLANEOUS]
    
      # List of note tags to take in consideration, separated by a comma.
      notes=FIXME,XXX,TODO
    

    simply drop TODO from the "notes" list.

    The config file is found at

    ~/.pylintrc
    

    If you have not generated the config file, this can be done with

    pylint --generate-rcfile > ~/.pylintrc
    

提交回复
热议问题