Skip to content

Format the release permissions test to the kwarg-spacing hook - #8245

Merged
danielhanchen merged 1 commit into
unslothai:mainfrom
danielhanchen:fix/kwarg-format-release-test
Aug 9, 2026
Merged

danielhanchen merged 1 commit into
unslothai:mainfrom
danielhanchen:fix/kwarg-format-release-test

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/security/test_release_desktop_permissions.py as rewritten in #8240 does not match scripts/run_ruff_format.py, the ruff-format-with-kwargs pre-commit hook (pinned ruff==0.6.9).

pre-commit.ci runs --all-files against each PR's merge result, so this is not confined to #8240: every open PR fails that hook as soon as it merges main. #7867 is the one currently showing it.

Two statements, wrapped the way I typed them rather than the way the hook wants:

  • the Wait for the build matrix next(...) call splits across lines
  • the matrix_legs set comprehension collapses onto one

Formatting only. The 79 tests in tests/security/test_release_desktop_permissions.py and tests/python/test_virustotal_scan.py pass unchanged, and re-running the hook afterwards is a no-op.

The rewrite in unslothai#8240 left two statements wrapped the way I typed them
rather than the way scripts/run_ruff_format.py wants them. pre-commit.ci
runs that hook over the whole tree on each PR's merge result, so every
open PR inherits the failure the moment it merges main.

Formatting only; the file's 79 tests pass unchanged.
@danielhanchen
danielhanchen merged commit 4bd9a2b into unslothai:main Aug 9, 2026
10 of 19 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.

1 participant