Repository navigation
Remember logical line layouts in the builtin formatter - #6697
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will improve performance by 52.45%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Breaking Change AnalysisResult: No breaking changes detected Reasoning: The PR only changes the private module _builtin_line_split.py to speed up formatting: format_logical_line now hands its work to a new private helper, _logical_line_layout, whose results are stored in an lru_cache of 1024 entries when restore is the default str. The cached arguments are strings, ints and bools, and the same input always gives the same layout, so caching cannot change results. format_logical_line still returns the same rows and list shape, or None. The only removed lines are the old functools import and the old return statement. No public option, CLI flag, template, default value or public Python name changed. Every behaviour diff cell is both-fail, with none accepted or violation, so default output is unchanged. This analysis was produced by the release draft workflow |
|
🎉 Released in 0.93.0 This PR is now available in the latest release. See the release notes for details. |
Summary by CodeRabbit