我们如何识别 lint 格式检查格式
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不需要,你
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 checkgit diff
to see what changed.