KEMBAR78
[CodeStyle][black] Bump black to 2025 style (`25.1.0`) by SigureMo · Pull Request #72916 · PaddlePaddle/Paddle · GitHub
Skip to content

Conversation

@SigureMo
Copy link
Member

@SigureMo SigureMo commented May 23, 2025

PR Category

User Experience

PR Types

Improvements

Description

  • 升级 black 到 25.1.0,这包含了 2025 style,对全量代码格式化
  • 移除 black target-version 中的 py38,添加 py313,同样全量格式化(with 多个 guard 的新形式好看多了,后面可以再引入 SIM1171
  • 调整 mypy python_version3.9
  • 移除部分无必要的 fmt: off

Footnotes

  1. https://docs.astral.sh/ruff/rules/multiple-with-statements/

@paddle-bot
Copy link

paddle-bot bot commented May 23, 2025

你的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
Copy link
Member Author

skip-reason: format only

@SigureMo SigureMo changed the title [CodeStyle][black] Bump black to 2025 style (25.1.0) [CodeStyle][black] Bump black to 2025 style (25.1.0) May 23, 2025
@SigureMo SigureMo merged commit f0828a0 into PaddlePaddle:develop May 26, 2025
91 of 99 checks passed
@SigureMo SigureMo deleted the black/25-1-0 branch May 26, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants