-
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][UP031] fix /{python, test, tools}/*
- part 19
#65585
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gouzil
requested review from
sneaxiy,
raindrops2sea,
XiaoguangHu01,
zhiqiu,
Xreki,
qili93,
Aurelius84,
cxxly,
xiaoguoguo626807 and
changeyoung98
as code owners
June 30, 2024 12:19
你的PR提交成功,感谢你对开源项目的贡献! |
gouzil
changed the title
[CodeStyle][UP031] fix '/{python, test, tools}/*' and
[CodeStyle][UP031] fix Jun 30, 2024
setup{.py, .in}
- part 19/{python, test, tools}/*
and setup{.py, .in}
- part 19
SigureMo
reviewed
Jun 30, 2024
SigureMo
approved these changes
Jun 30, 2024
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.
SigureMo
changed the title
[CodeStyle][UP031] fix
[CodeStyle][UP031] fix Jun 30, 2024
/{python, test, tools}/*
and setup{.py, .in}
- part 19/{python, test, tools}/*
- part 19
wanghuancoder
approved these changes
Jul 1, 2024
Aurelius84
approved these changes
Jul 1, 2024
zyfncg
approved these changes
Jul 1, 2024
risemeup1
approved these changes
Jul 1, 2024
raindrops2sea
approved these changes
Jul 1, 2024
This was referenced Dec 7, 2024
Merged
Merged
This was referenced Dec 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Category
User Experience
PR Types
Not User Facing
Description
修复 Ruff 0.5.0 检测出来的 UP031 问题,为升级 Ruff 0.5.0 做准备
UP031 为将
"aaa %s bbb" % x
替换为"aaa {} bbb".format(x)
的 rule,结合 UP032 可直接替换为可读性更佳的 f-string(即f"aaa {x} bbb"
),本 PR 接近收尾 PR,后续将会进行 Ruff 升级工作相关pr:
tools/*
and a littlepython/paddle/base
- part 7 #65549python/paddle/
- part 8 #65552/python/paddle/
and/paddle/phi/kernels/
- part 9 #65563/test/legacy_test/*
- part 10 #65564/python/paddle/distributed/auto_parallel/*
- part 11 #65571/python/paddle/distributed/fleet/*
- part 12 #65572/python/paddle/distributed/{passes, transpiler, utils}*
- part 13 #65573/python/paddle/{amp, base, dataset, distributed, audio}
- part 14 #65574/python/paddle/{hapi, geometric, jit, quantization, utils}*
- part 15 #65576/test/{deprecated, dygraph_to_static, ir, mkldnn, quantization}*
- part 16 #65577/test/{rnn, tokenizer, xpu}*
andtools/*
- part 17 #65578/python/paddle/
- part 18 #65580