Skip to content
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][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic for 10 files in python/paddle/ #67124

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

Jeff114514
Copy link
Contributor

PR Category

User Experience

PR Types

Devs

Description

修复如下文件 RSE102 的 Ruff 规则:

  • python/paddle/jit/sot/opcode_translator/executor/mutable_data.py
  • python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py
  • python/paddle/jit/sot/opcode_translator/executor/side_effects.py
  • python/paddle/jit/sot/opcode_translator/executor/tracker.py
  • python/paddle/jit/sot/opcode_translator/executor/variables/base.py
  • python/paddle/jit/sot/opcode_translator/executor/variables/iter.py
  • python/paddle/jit/sot/utils/utils.py
  • python/paddle/nn/clip.py
  • python/paddle/nn/initializer/initializer.py
  • python/paddle/regularizer.py

Related links

@gouzil

Copy link

paddle-bot bot commented Aug 7, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@SigureMo SigureMo changed the title [CodeStyle][Ruff][BUAA][C-11-20] Fix Ruff RSE102 diagnostic in python/paddle/* [CodeStyle][Ruff][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic in python/paddle/* Aug 7, 2024
@SigureMo SigureMo changed the title [CodeStyle][Ruff][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic in python/paddle/* [CodeStyle][Ruff][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic for 10 files in python/paddle/* Aug 7, 2024
@SigureMo SigureMo changed the title [CodeStyle][Ruff][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic for 10 files in python/paddle/* [CodeStyle][Ruff][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic for 10 files in python/paddle/ Aug 7, 2024
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

@SigureMo SigureMo merged commit df2527c into PaddlePaddle:develop Aug 7, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants