-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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][task 27] Enable Ruff B009 rule in python/paddle/base
#57709
[CodeStyle][task 27] Enable Ruff B009 rule in python/paddle/base
#57709
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
LGTM,@SigureMo |
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.
LGTMeow 🐾
需要解决下冲突 |
冲突已解决 😸 |
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.
Ruff version: 0.0.290
才发现用的是高版本,注意之后版本需要和我们的 .pre-commit-config.yaml
完全对应,否则不确定是否会漏掉 / 多检测出来什么问题
LGTMeow 🐾
PR types
Bug fixes
PR changes
Others
Description
This PR comes after the idea in #57367.
The purpose is to activate Ruff's B009 check.
Ruff version: 0.0.290
What I've done:
Uncomment "B009", line in pyproject.toml
Take advantage of Ruff to identify and automatically fix relevant violations.
Make sure no B009 violation is found after the fix.
Make sure all local pre-commit hooks pass/skip
@gouzil