[CodeStyle] `black -> ruff format` migration - part 30 by gouzil · Pull Request #74744 · PaddlePaddle/Paddle

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@gouzil

Copy link

Member

@gouzil gouzil commented

Aug 19, 2025

PR Category

User Experience

PR Types

Not User Facing

Description

使用性能更好,格式化效果更佳的 ruff format 替代 black 作为新的 formatter,由于我们很早就已经集成了 ruff lint,因此只是减少依赖而不会增加依赖

@gouzil gouzil requested a review from SigureMo as a code owner

August 19, 2025 15:49

@paddle-bot

Copy link

paddle-bot bot commented

Aug 19, 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.

@paddle-bot paddle-bot bot added the contributor

External developers

label

Aug 19, 2025

@SigureMo SigureMo added skip-ci: approval HappyOpenSource

快乐开源活动issue与PR

labels

Aug 19, 2025

@codecov-commenter

Copy link

Codecov Report

❌ Patch coverage is 43.02326% with 98 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@80f1123). Learn more about missing BASE report.

Files with missing lines Patch % Lines
python/paddle/incubate/optimizer/recompute.py 17.39% 19 Missing ⚠️
python/paddle/incubate/optimizer/pipeline.py 0.00% 11 Missing ⚠️
python/paddle/incubate/autograd/primreg.py 22.22% 7 Missing ⚠️
python/paddle/incubate/autograd/primx.py 50.00% 6 Missing ⚠️
python/paddle/io/dataloader/dataset.py 0.00% 6 Missing ⚠️
python/paddle/hapi/model.py 66.66% 5 Missing ⚠️
.../paddle/incubate/distributed/utils/io/dist_save.py 0.00% 5 Missing ⚠️
...addle/incubate/optimizer/distributed_fused_lamb.py 0.00% 5 Missing ⚠️
...thon/paddle/incubate/cc/ap/pir_attrs_serializer.py 0.00% 4 Missing ⚠️
...dle/incubate/distributed/utils/io/save_for_auto.py 0.00% 4 Missing ⚠️
... and 15 more

❌ Your patch status has failed because the patch coverage (43.02%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop   #74744   +/-   ##
==========================================
  Coverage           ?   43.02%           
==========================================
  Files              ?       37           
  Lines              ?      172           
  Branches           ?        0           
==========================================
  Hits               ?       74           
  Misses             ?       98           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SigureMo SigureMo merged commit 4d59d9c into PaddlePaddle:develop

Aug 20, 2025

227 of 253 checks passed

@SigureMo SigureMo deleted the ruff/fmt/part-30 branch

August 20, 2025 18:03

Luckycheng222 pushed a commit to Luckycheng222/Paddle that referenced this pull request

Aug 25, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@SigureMo SigureMo SigureMo approved these changes

Assignees

No one assigned

Labels

contributor

External developers

HappyOpenSource

快乐开源活动issue与PR

skip-ci: all skip-ci: approval

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@gouzil @codecov-commenter @SigureMo