Repository navigation
Move the render preparation, import and finish passes and the pass tables into their own modules - #5270
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codex Review SummaryThis 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 degrade performance by 25.61%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
…bles into their own modules
4137597 to
fae86f9
Compare
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: This PR is an internal refactor. It moves the private pass methods of Parser (name-mangled double-underscore methods such as the constructor field ordering, type alias updates, import finalization, msgspec decoding warnings and the render step) and the class-level pipeline tables out of parser/base.py into new private modules under parser/_passes: _tables.py, render_prep.py, imports.py and decide.py. The run state classes move into _passes/_state.py. The public names parser/base.py used to export are re-exported there: SPECIAL_PATH_FORMAT, get_special_path, PydanticFloors, pydantic_floors_recorded, override_required_field, the modules and plans references, and private shims for moved helpers. The overridable hooks _build_module_structure, _process_single_module and _finalize_modules, and the use of Parser._build_code_formatter and Result, behave as before. Warnings now go through warn_as_parser_base with the same UserWarning or DefaultValueTypeWarning categories and the same messages, so module filters on parser.base still match them; the new tests confirm this. The rest of the PR is doc updates, allowlist and script path updates, and tests moved from name-mangled private methods to the new module functions. No CLI option, public API, generated output, template, default, Python version support or error message changes. This analysis was produced by the release draft workflow |
Summary by CodeRabbit