【发布时间】:2021-06-07 08:49:41
【问题描述】:
我正在尝试检查我正在处理“python_record.py”的脚本中的问题。如果我在终端中运行 pylint python_record.py,我会得到一个带有多个错误的长输出。
但是当我通过 VSCode 运行 pylint 时,我什么也没得到。我启用了 linting,并选择了运行 pylint,但它什么也没给我。以下是我的settings.json:
{
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\wsl.exe",
"git.confirmSync": false,
"python.linting.enabled": true,
"window.zoomLevel": -2,
"python.pythonPath": "C:\\Users\\becky\\AppData\\Local\\Programs\\Python\\Python38-
32\\python.exe",
"files.autoSave": "off",
"terminal.integrated.automationShell.linux": "",
"python.linting.pylintEnabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"terminal.integrated.env.linux": {
},
"terminal.integrated.automationShell.windows": "",
"python.autoComplete.extraPaths": [
],
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
]
}
我没有固定在任何特别花哨的设置上,因此很乐意完全更改 settings.json,我只希望我的默认终端是 bash 并且 linting 能够正常运行(尤其是在保存时)。
如果你能帮忙,请告诉我!
谢谢!!
编辑:
【问题讨论】:
标签: python visual-studio-code vscode-settings pylint