fix(format): use communicate rathan than .stdin.write#2966
fix(format): use communicate rathan than .stdin.write#2966prousso wants to merge 1 commit intokoxudaxi:mainfrom
Conversation
to avoid dealocks due to any of the other OS pipe buffers filling up and blocking the child process
📝 WalkthroughWalkthroughA single-line modification in the ruff code formatter that changes how input is passed to the subprocess check process, switching from direct stdin writing to using the communicate() method. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing
|
|
@prousso |
|
🎉 Released in 0.54.0 The fix/feature from PR #2967 has been included in this release. See the release notes for details. Thank you for your contribution! |
to avoid dealocks due to any of the other OS pipe buffers filling
up and blocking the child process
Example that hang: