Repository navigation
Fix Python post-processing scope to preserve user-managed files - #12114
Libba Lawrence (l0lawrence) wants to merge 1 commit into
Conversation
Track successful serializer writes and use them for Black formatting and pylint suppressions across native, Pyodide, and batch generation. Preserve user-managed Python files and add regression coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
commit: |
|
You can try these changes here
|
|
All changed packages have been documented.
Show changes
|
Python emitter diffBaseline Diff summary: 1 file(s), +1 / -1 Rendered diff: inline on the run summary, or the emitter-diff-html artifact. Informational check (eng/emitter-diff); does not block the PR. |
|
Hi @Libba Lawrence (@l0lawrence). Your PR has had no update for 14 days and it is marked as a stale PR. If it is not updated within 14 additional days, the PR will automatically be closed. The |
|
Hi @Libba Lawrence (@l0lawrence). The PR will be closed since the PR has no update for 28 days. If this is still relevant please reopen. |
The Python emitter's post-generation steps currently scan the output directory, formatting and adding pylint suppression comments to pre-existing tests, samples, and other user-managed Python files. This change limits those steps to files written during the current generation.
Approach
This post-generation step does not invoke pylint; it inserts suppression comments where necessary. The standalone
pygen.blackcommand now requires explicit filenames. Suppression insertion also preserves stable line endings when extending an existing header.Validation
Includes a fix changelog entry and documentation describing the post-processing scope.
Fixes: #11424