Skip to content

MAINT: Make WordDocConverter placeholder helper keyword-only - #4712

Merged
Roman Lutz (romanlutz) merged 1 commit into
microsoft:mainfrom
its-amann:maint/word-doc-keyword-only-4216
Dec 1, 2026
Merged

Roman Lutz (romanlutz) merged 1 commit into
microsoft:mainfrom
its-amann:maint/word-doc-keyword-only-4216

Conversation

@its-amann

Copy link
Copy Markdown
Contributor

Description

Makes WordDocConverter._replace_placeholder_in_paragraph keyword-only, updates its callers, and removes its migration baseline entry. Existing conversion tests now also verify saved document text, run formatting, and preservation of the original template.

Relates to #4216.

Roman Lutz (@romanlutz)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the WordDocConverter keyword-only helper migration.

No open issues 🎉

What changed in this PR

This PR advances the private-helper keyword-only migration in #4216 by updating WordDocConverter without changing its conversion logic.

Changes:

  • Makes _replace_placeholder_in_paragraph keyword-only and updates production and test callers.
  • Removes the helper’s keyword-only baseline entry.
  • Strengthens conversion tests to check saved text, run formatting, and preservation of the original template.
File Description
tests/​unit/​converter/​test_word_doc_converter.py Updates helper calls and adds document-content and formatting assertions.
pyrit/​converter/​word_doc_converter.py Makes the placeholder helper keyword-only and updates its caller.
build_scripts/​keyword_only_baseline.txt Removes the migrated helper from the baseline.

Review effort: Balanced

@romanlutz Roman Lutz (romanlutz) self-assigned this Dec 1, 2026
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Dec 1, 2026
Merged via the queue into microsoft:main with commit d971287 Dec 1, 2026
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants