Repository navigation
Let the pinned formatter have the line it wants in settings.py - #11371
Conversation
|
@codex review |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…11372) * Format the validator unslothai#11370 added, so pre-commit.ci is green again `ruff-format-with-kwargs` runs over the whole tree, so one unformatted signature fails the hook on every open PR rather than only on the one that introduced it. `_validate_sidebar_nav_auto` fits on a single line under the pinned ruff 0.6.9, and this is exactly the output of `python scripts/run_ruff_format.py studio/backend/routes/settings.py`. * Give the desktop release tests an explicit utf-8 encoding The repo's own guard in tests/security fails any read of a checked-in file at the platform default encoding, because it breaks on Windows the moment that file gains a non-ASCII byte. Three reads added with the desktop release work were missing it, which fails `Repo tests (CPU, rest)` on every PR opened against current main, unslothai#11371 and unslothai#11372 included.
…11372) * Format the validator unslothai#11370 added, so pre-commit.ci is green again `ruff-format-with-kwargs` runs over the whole tree, so one unformatted signature fails the hook on every open PR rather than only on the one that introduced it. `_validate_sidebar_nav_auto` fits on a single line under the pinned ruff 0.6.9, and this is exactly the output of `python scripts/run_ruff_format.py studio/backend/routes/settings.py`. * Give the desktop release tests an explicit utf-8 encoding The repo's own guard in tests/security fails any read of a checked-in file at the platform default encoding, because it breaks on Windows the moment that file gains a non-ASCII byte. Three reads added with the desktop release work were missing it, which fails `Repo tests (CPU, rest)` on every PR opened against current main, unslothai#11371 and unslothai#11372 included.
mainis not a fixed point of its own formatting hook again, sopre-commit.ci - pris red on every open pull request andtests/test_formatter_fixed_point.py::test_every_tracked_python_file_is_already_formattedfails onmainitself.What happened
#11370 added
_validate_sidebar_nav_autotostudio/backend/routes/settings.pywith its signature wrapped across three lines. The pinned hook collapses it, because the single-line form is 90 characters and fits:That is the whole change. No behaviour is touched.
This is the same shape as the one #11348 fixed: the hook runs on the files a pull request touches, so a file that lands unformatted is never looked at again, and the next author to edit
settings.pyinherits a red check for a diff they did not write.Verification
pre-commit run --all-fileswith the pinnedruff==0.6.9: fails onmain(Ruff format with kwarg spacing), passes here.tests/test_formatter_fixed_point.py:1 failed, 10 passedonmain,11 passedhere.git log -S_validate_sidebar_nav_auto, which names63c63415a(Studio: give a project one home in the sidebar, and fix the row menus around it #11370).The guard that catches this already exists and was working; it just needs the tree to agree with it.