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][F401] replace autoflake with ruff #51529

Merged
merged 6 commits into from
Mar 16, 2023

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Mar 12, 2023

PR types

Others

PR changes

Others

Describe

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

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

Note

Related links

@paddle-bot
Copy link

paddle-bot bot commented Mar 12, 2023

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