Skip to content

chore: some cleanup and checks#2792

Open
henryiii wants to merge 2 commits intopypa:mainfrom
henryiii:henryiii/chore/cleanup
Open

chore: some cleanup and checks#2792
henryiii wants to merge 2 commits intopypa:mainfrom
henryiii:henryiii/chore/cleanup

Conversation

@henryiii
Copy link
Contributor

  • chore: clean up config a bit
  • chore: add an extra check

@henryiii henryiii requested a review from freakboy3742 as a code owner March 23, 2026 14:32
@henryiii
Copy link
Contributor Author

The azure failure: RuntimeError: failed to query /Users/runner/Library/Caches/cibuildwheel/graalpy-25.0.1-macos-amd64/bin/graalpy with code -1 err: 'timed out'

Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

I think I was tagged on this because of the iOS inclusion; but it all makes sense to me. One possible cleanup in the iOS code that avoids the need for a Ruff rule exemption.

xbuild_tools: Sequence[str] | None,
) -> tuple[Path, dict[str, str]]:
if build_frontend == "build[uv]" or build_frontend == "uv":
if build_frontend == "build[uv]" or build_frontend == "uv": # noqa: PLR1714
Copy link
Contributor

Choose a reason for hiding this comment

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

No particularly strong feelings either way, I can't see any reason that the PLR1714 should be required here:

Suggested change
if build_frontend == "build[uv]" or build_frontend == "uv": # noqa: PLR1714
if build_frontend in {"build[uv]", "uv"}:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For mypy. It can't narrow with the set expression, but it can with the current one. Might need a comment, then.

build_frontend = build_options.build_frontend
# uv doesn't support iOS
if build_frontend.name == "build[uv]" or build_frontend.name == "uv":
if build_frontend.name == "build[uv]" or build_frontend.name == "uv": # noqa: PLR1714
Copy link
Contributor

Choose a reason for hiding this comment

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

As above - the PLR exemption shouldn't be needed:

Suggested change
if build_frontend.name == "build[uv]" or build_frontend.name == "uv": # noqa: PLR1714
if build_frontend.name in {"build[uv]", "uv"}:

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.

2 participants