-
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 7] enable Ruff UP031 rule in python/paddle/base #57665
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
需要再按照 UP032 修一下 ruff check .
python/paddle/base/core.py:50:13: UP032 [*] Use f-string instead of `format` call
python/paddle/base/core.py:199:13: UP032 [*] Use f-string instead of `format` call
python/paddle/base/executor.py:488:16: UP032 [*] Use f-string instead of `format` call
python/paddle/base/executor.py:511:20: UP032 [*] Use f-string instead of `format` call
python/paddle/base/executor.py:2793:20: UP032 [*] Use f-string instead of `format` call
python/paddle/base/framework.py:1879:28: UP032 [*] Use f-string instead of `format` call
python/paddle/base/framework.py:3045:33: UP032 [*] Use f-string instead of `format` call
python/paddle/base/framework.py:3053:33: UP032 [*] Use f-string instead of `format` call
python/paddle/base/framework.py:3099:29: UP032 [*] Use f-string instead of `format` call
python/paddle/base/framework.py:3117:37: UP032 [*] Use f-string instead of `format` call
python/paddle/base/framework.py:7292:28: UP032 [*] Use f-string instead of `format` call
python/paddle/base/trainer_desc.py:239:17: UP032 [*] Use f-string instead of `format` call
python/paddle/base/trainer_desc.py:255:17: UP032 [*] Use f-string instead of `format` call
python/paddle/base/trainer_desc.py:273:17: UP032 [*] Use f-string instead of `format` call 用 |
其他的风格检测工具没过,需要按照文档配置一下 |
modified: python/paddle/base/data_feeder.py modified: python/paddle/base/dygraph/base.py modified: python/paddle/base/executor.py modified: python/paddle/base/framework.py modified: python/paddle/base/layers/layer_function_generator.py
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 🐾
…dlePaddle#57665) * delete UP031 * [CodeStyle][task 7] enable Ruff UP031 rule in python/paddle/base * modified: python/paddle/base/backward.py modified: python/paddle/base/data_feeder.py modified: python/paddle/base/dygraph/base.py modified: python/paddle/base/executor.py modified: python/paddle/base/framework.py modified: python/paddle/base/layers/layer_function_generator.py
…dlePaddle#57665) * delete UP031 * [CodeStyle][task 7] enable Ruff UP031 rule in python/paddle/base * modified: python/paddle/base/backward.py modified: python/paddle/base/data_feeder.py modified: python/paddle/base/dygraph/base.py modified: python/paddle/base/executor.py modified: python/paddle/base/framework.py modified: python/paddle/base/layers/layer_function_generator.py
…dlePaddle#57665) * delete UP031 * [CodeStyle][task 7] enable Ruff UP031 rule in python/paddle/base * modified: python/paddle/base/backward.py modified: python/paddle/base/data_feeder.py modified: python/paddle/base/dygraph/base.py modified: python/paddle/base/executor.py modified: python/paddle/base/framework.py modified: python/paddle/base/layers/layer_function_generator.py
PR types
Others
PR changes
Others
Description
Related links
paddle.base
check #57367@gouzil