Pylint not running as expected in VScode

后端 未结 2 1738
时光取名叫无心
时光取名叫无心 2021-02-13 20:13

When I am running via shell a pylint:

$ pylint decorator.py 
No config file found, using default configuration
************* Module decorator
C:  7,         


        
2条回答
  •  -上瘾入骨i
    2021-02-13 20:51

    Assuming you have configured Python's Extension correctly and you have Pylint installed,

    VSCode's Python Extension will do minimal checking by default if you do not provide a Pylint configuration option.

    Simply enter "python.linting.pylintUseMinimalCheckers": false, into your .vscode/settings.json to force this off.

    This is how mine looks:

    {
        "autoDocstring.docstringFormat": "numpy",
        "editor.minimap.enabled": false,
        "editor.selectionClipboard": false,
        "python.pythonPath": "/home/jim/anaconda3/envs/dipoleDisplay",
        "window.zoomLevel": 0,
        "terminal.integrated.rendererType": "dom",
        "python.linting.pylintUseMinimalCheckers": false,
    }
    

提交回复
热议问题