知识卡片
启用检查需统一项目配置
将所用检查器和规则作为项目约定,并在编辑器问题面板或悬浮提示查看具体错误。书中VS Code推荐扩展方式与旧python.linting设置混杂,应按实际插件版本核对;不把旧键粘贴后无报错当检查已运行。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 代码编辑器生产力
原书出处 · 1 处
- · 查看原书依据
Enable linting You can see the linter’s warnings by either: Clicking on the “Problems” tab near the IDE’s terminal Hovering over code with amber/red highlights No action needed. PyCharm’s default linter is automatically enabled when you configure the virtual environment. At the time of writing, VS Code recommends configuring via VS Code extensions. To install the linter extension, which we specified in .vscode/extensions.json, open your
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第07章《代码编辑器生产力》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch07.html)
- 结论依据:摘录中关于启用检查需统一项目配置的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Enable linting You can see the linter’s warnings by either: Clicking on the “Problems” tab near the IDE’s terminal Hovering over code with amber/red highlights No action needed. PyCharm’s default linter is automatically enabled when you configure the virtual environment. At the time of writing, VS Code recommends configuring via VS Code extensions. To install the linter extension, which we specified in .vscode/extensions.json, open your