Skip to content

Format the desktop contract test to the ruff-format fixed point - #12440

Merged
danielhanchen merged 1 commit into
mainfrom
fix/ruff-format-desktop-contract
Oct 1, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/ruff-format-desktop-contract

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

Repo tests (CPU, rest) fails tests/test_formatter_fixed_point.py on main (seen on #12433):

AssertionError: these tracked files are not a fixed point of the ruff-format-with-kwargs hook, so pre-commit.ci will fail the next PR that edits them:
    tests/studio/test_desktop_reliability_frontend_contract.py

My last commit on #12426 wrote one assertion message with escaped double quotes. ruff-format prefers single quotes there, so the file is not at the formatter's fixed point.

Fix

Ran python scripts/run_ruff_format.py tests/studio/test_desktop_reliability_frontend_contract.py. One line changes, quote style only:

-    assert label < end, "aria-label=\"New chat\" is not on the <Button> opening tag"
+    assert label < end, 'aria-label="New chat" is not on the <Button> opening tag'

Verification

  • tests/test_formatter_fixed_point.py: 16 passed.
  • tests/studio/test_desktop_reliability_frontend_contract.py: unchanged behaviour.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T14:09:49.633196Z 7bd7393 Manual request
🔒 Security Review ⚠️ Failed 2026-10-01T14:08:54.870595Z 7bd7393 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 7bd739361e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 8492a02 into main Oct 1, 2026
3 of 23 checks passed
@danielhanchen
danielhanchen deleted the fix/ruff-format-desktop-contract branch October 1, 2026 14:52
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.

1 participant