vscode配置flake8报错
时间: 2023-09-21 11:06:43 浏览: 140
vscode配置文件ubuntu.zip
在VSCode中配置flake8报错可以按照以下步骤进行操作。首先,打开设置(可以通过按下"Ctrl + ,"或者点击菜单栏中的"文件" -> "首选项" -> "设置")。然后,在搜索框中输入"python.linting.flake8Enabled",并勾选该设置项。接下来,搜索"python.formatting.provider"设置项,并选择 "yapf"作为代码格式化工具。最后,对flake8参数进行配置,可以通过修改"python.linting.flake8Args"的值,在其中添加代码来加大检查长度或者忽略对应错误。比如,可以设置"--max-line-length=150"来修改长度," --ignore=E402,E501"来忽略对应错误。修改后保存即可使配置生效。 [2<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vscode flake8报错E501, 修改settings.json无效](https://blog.csdn.net/SIMPLE1995/article/details/129693417)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [vscode 逗号不换行_Windows 平台下 vscode 中 flake8 和 yapf 的配置](https://blog.csdn.net/weixin_39629467/article/details/109902671)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文