Spyder 4.1.5禁用选定的pycodestyle警告

2024-06-08 07:22:34 发布

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

将Spyder更新到4.1.5后,我的脚本中会出现一大堆特定于口味的警报,如:

Code analysis:
E261 at least two spaces before inline comment (pycodestyle E261)

Code analysis:
E266 too many leading '#' for block comment (pycodestyle E266)

虽然许多警告改进了我的代码,但我想禁用我不同意的警告(例如上面列出的两个)

我怎么做


Tags: 脚本警告commentcodeanalysis警报atpycodestyle
1条回答
网友
1楼 · 发布于 2024-06-08 07:22:34

好的,我找到了 Tools -> Preferences -> Completion and linting -> Code Style然后标记复选框Enable code style linting,然后列出所有不需要的警告,并用逗号分隔

相关问题 更多 >

    热门问题