-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeStyle][ruff] add new rule T100
#60243
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -556,7 +556,7 @@ def step(self, instr: Instruction): | |||
): | |||
BreakpointManager().locate(self) | |||
print(log_message) | |||
breakpoint() # breakpoint for debug | |||
breakpoint() # noqa: T100 # breakpoint for debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释直接删掉就好
@@ -18,7 +18,7 @@ | |||
import inspect | |||
import logging | |||
import os | |||
import pdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import 都扫出来了?这检查是不是过于严格了,我感觉只有 FunctionCall 才应该被检测出来吧……
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
T100
T100
PR types
Others
PR changes
Others
Description
检查
pdb
,breakpoint()
等 Debugger 相关函数和 api