Skip to content

[CodeStyle][Ruff][BUAA][C-[11-20]] Fix Ruff RSE102 diagnostic for 10 files in python/paddle/ - #67124

Merged
SigureMo merged 1 commit into
PaddlePaddle:developfrom
Jeff114514:RSE102-1
Aug 7, 2024
Merged

SigureMo merged 1 commit into
PaddlePaddle:developfrom
Jeff114514:RSE102-1

Conversation

@Jeff114514

Copy link
Copy Markdown
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

@paddle-bot

paddle-bot Bot commented Aug 7, 2024

Copy link
Copy Markdown

你的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

@SigureMo SigureMo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTMeow 🐾

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