Skip to content

fix: prevent fmt from updating Python SDK lockfile#22505

Merged
jif-oai merged 1 commit into
mainfrom
jif/frozen-fmt
May 13, 2026
Merged

fix: prevent fmt from updating Python SDK lockfile#22505
jif-oai merged 1 commit into
mainfrom
jif/frozen-fmt

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 13, 2026

Why

just fmt should align source formatting without resolving dependencies or rewriting lockfiles. The Python SDK formatting steps run through uv, so differing local uv versions could decide the SDK lock was stale and mutate sdk/python/uv.lock before Ruff ran.

What

  • Add --frozen to both Python SDK uv run ... ruff commands in the root fmt recipe.
  • Update the existing Python SDK artifact workflow guard test so future changes keep the formatter recipe non-lock-mutating.

Verification

  • uv run --frozen --project ../sdk/python --extra dev pytest ../sdk/python/tests/test_artifact_workflow_and_binaries.py -q

@jif-oai jif-oai changed the title fix: main fix: prevent fmt from updating Python SDK lockfile May 13, 2026
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

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

tysm!

@jif-oai jif-oai merged commit 382404d into main May 13, 2026
26 checks passed
@jif-oai jif-oai deleted the jif/frozen-fmt branch May 13, 2026 15:58
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants