Skip to content

[CodeStyle][F401] replace autoflake with ruff - #51529

Merged
luotao1 merged 6 commits into
PaddlePaddle:developfrom
cattidea:ruff/config/F401
Mar 16, 2023
Merged

luotao1 merged 6 commits into
PaddlePaddle:developfrom
cattidea:ruff/config/F401

Conversation

@SigureMo

@SigureMo SigureMo commented Mar 12, 2023 •

Copy link
Copy Markdown
Collaborator

PR types

Others

PR changes

Others

Describe

autoflake 是在 #51381 Flake8 清理过 F401 存量后引入的,见 #47455,本 PR 旨在利用 Ruff 的 F401 自动修复功能替代 autoflake,以精简工具数量。

  • 是否可以引入本 rule:✅ 如上所述,为避免增量可引入
  • 是否可引入自动修复:✅ 如上所述,为自动修复功能可引入

Note

Related links

@paddle-bot

paddle-bot Bot commented Mar 12, 2023

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.

@luotao1 luotao1 self-assigned this Mar 16, 2023
@SigureMo

Copy link
Copy Markdown
Collaborator Author

image

仅修改配置,用了 test=document_fix 需要豁免一下~

@SigureMo
SigureMo requested a review from luotao1 March 16, 2023 05:21
@luotao1
luotao1 merged commit 2d97316 into PaddlePaddle:develop Mar 16, 2023
@SigureMo
SigureMo deleted the ruff/config/F401 branch March 16, 2023 06:12
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