Skip to content

Fix Ruff linting#14111

Merged
zanieb merged 1 commit intomainfrom
zb/ruff-fix
Jun 17, 2025
Merged

Fix Ruff linting#14111
zanieb merged 1 commit intomainfrom
zb/ruff-fix

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Jun 17, 2025

No description provided.

@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Jun 17, 2025
@zanieb zanieb force-pushed the zb/ruff-fix branch 3 times, most recently from a18b2c8 to 456d726 Compare June 17, 2025 17:09
@zanieb zanieb marked this pull request as ready for review June 17, 2025 17:09
@zanieb zanieb enabled auto-merge (squash) June 17, 2025 17:13
@zanieb zanieb disabled auto-merge June 17, 2025 17:13
@zanieb
Copy link
Member Author

zanieb commented Jun 17, 2025

This shouldn't pass without #14108 but does? — edit: this is because we incorrectly excluded the python crate

# location. So in newer versions, we also write a dedicated flag to indicate standalone builds.
"standalone": sysconfig.get_config_var("prefix") == "/install" or bool(sysconfig.get_config_var("PYTHON_BUILD_STANDALONE")),
"standalone": sysconfig.get_config_var("prefix") == "/install"
or bool(sysconfig.get_config_var("PYTHON_BUILD_STANDALONE")),
Copy link
Member

Choose a reason for hiding this comment

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

Can we parenthesize this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that formatting drives me crazy :)

@zanieb zanieb force-pushed the zb/ruff-fix branch 3 times, most recently from e830252 to f5605f9 Compare June 17, 2025 17:18
@zanieb zanieb enabled auto-merge (squash) June 17, 2025 17:21
@zanieb zanieb merged commit c25c800 into main Jun 17, 2025
86 checks passed
@zanieb zanieb deleted the zb/ruff-fix branch June 17, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants