[转载] 消除vscode安装pylint后提示的unused variable

参考链接: 使用direnv和pyenv管理Python环境

vscode

 消除vscode安装pylint后提示的unused variable查看代码复制代码

 

 

消除vscode安装pylint后提示的unused variable 

查看代码 

把标记的那段代码放到你的vscode的setting.json文件里。  

复制代码 

{

    "python.pythonPath": "C:\\Users\\intern\\AppData\\Local\\Programs\\Python\\Python37\\python.exe",

    "editor.fontSize": 28,

 

    "python.venvPath": "C:\\Users\\intern\\Envs",

    "python.venvFolders": [

        "envs",

        ".pyenv",

        ".direnv",

        ".env",

      ],

    "files.autoSave": "afterDelay",

    "editor.tabSize": 10,

    "terminal.integrated.fontSize": 23,

    "editor.accessibilityPageSize": 15,

    "python.linting.pylintArgs": [

      "--disable=E1101",

      "--disable=W,C"

    ]

}

上一篇:配置 eslint 去掉 no-unused-vars 报错 方法汇总


下一篇:Vue踩坑--‘xxx‘ is assigned a value but never used no-unused-vars