Visual Studio代码中的Linting不起作用

2024-04-26 18:14:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经使用VSC(Mac版本1.19.1)包括正式的Python扩展(0.9.1)几个月了。由于我保持了大部分配置不变,我一直在使用Pylint进行linting。

直到几周前一切都很好,现在林寻已经不工作了。

例如:

def test(x):
return x

在这里,我通常会得到一个由Pylint显示的缩进错误,不再发生。

我已经重新安装了Python扩展,然后重新安装了Visual Studio代码,没有任何效果。有人能帮我吗?

我运行MacOS 10.13.1和Python 3.6。和Pylint 1.8.1。我的VSC用户设置是:

"editor.rulers": [
99
],
"files.insertFinalNewline": true,
"workbench.activityBar.visible": true,
"files.trimTrailingWhitespace": true,
"editor.minimap.enabled": false,
"explorer.confirmDragAndDrop": false

Tags: test版本falsetruereturnmacdef错误