How do I disable pylint unused import error messages in vs code

后端 未结 5 1705
南方客
南方客 2020-12-14 08:21

How do I disable these error messages from popping up in the problems box in vs code

5条回答
  •  天命终不由人
    2020-12-14 08:29

    For the simple test.py, I did not modify setting but only apply to that file I used # pylint: disable=W0614 Put this line on top of the file then pylint automatically recognized it.

    This eliminated 100 unused import warnings

    You can keep disabling like this

    # pylint: disable=missing-module-docstring
    # pylint: disable=missing-class-docstring
    # pylint: disable=missing-function-docstring
    # pylint: disable=wildcard-import
    # pylint: disable=W0614
    

提交回复
热议问题