我们如何识别 lint 格式检查格式

发布于 2025-01-16 21:22:03 字数 74 浏览 2 评论 0原文

我正在使用 python 代码库,当我运行命令时,该代码库会抛出此错误

make test



Oh no! 
              

I am working in a python code base that throws this error when I run the the command

make test



Oh no! ???? ???? ????
1 file would be reformatted, 28 files would be left unchanged.
make: *** [auto-format-check] Error 1

My question is, how do I identify which line has the formatting issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚雾 2025-01-23 21:22:03

你不需要,你git add文件然后应用自动格式来解决问题(可能看到你的输出是黑色的?)。应用自动格式化程序后,您可以检查 git diff 来查看发生了什么变化。

You don't, you git add the file then apply the autoformat to fix the problem (probably black seeing your output?). Once you have applied the autoformatter you can check git diff to see what changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文