Repository navigation
MAINT: Make environment loading private helpers keyword-only - #4762
Merged
Roman Lutz (romanlutz) merged 2 commits intoDec 1, 2026
Merged
Roman Lutz (romanlutz) merged 2 commits into
Roman Lutz (romanlutz) merged 2 commits into
Conversation
Make the two baselined signatures in pyrit.setup.environment_loading keyword-only, update their callers, and remove their keyword-only baseline entries. Relates to microsoft#4216
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the keyword-only helper migration.
No open issues 🎉
What changed in this PR
This PR advances #4216 by migrating two private environment-loading helpers to keyword-only parameters while preserving their existing logic.
Changes:
- Make
_print_msgand nestedinterpolate_asynckeyword-only and update their in-module callers. - Remove both migrated signatures from the keyword-only enforcement baseline.
| File | Description |
|---|---|
pyrit/setup/environment_loading.py |
Updates helper signatures and calls to use explicit keyword arguments. |
build_scripts/keyword_only_baseline.txt |
Removes the two migrated helper entries. |
Review effort: Balanced
Roman Lutz (romanlutz)
approved these changes
Dec 1, 2026
Roman Lutz (romanlutz)
enabled auto-merge
December 1, 2026 06:59
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Dec 1, 2026
Contributor
Author
|
Roman Lutz (@romanlutz) Thanks for the review. The merge queue removed this PR with The cause looks like a CI hang, not the change:
I did not push anything, so the approval stays valid. A similar 6-hour hang in "Run unit tests" also appeared on another PR the same day (run 46603775596, macOS 3.15), so it may be a flaky test and not specific to this branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Relates to #4216
Make the two baselined signatures in
pyrit.setup.environment_loadingkeyword-only and remove their keyword-only baseline entries._print_msgandresolve_environment_async.<locals>.interpolate_asyncnow take keyword-only parameters.tests/unit/setup/test_environment_loading.pyalready cover every updated call, so no new tests are added.