Skip to content

ruff-format: Add version 0.5.4 - #2198

Merged
luhenry merged 3 commits into
mainfrom
ruff-format
Sep 24, 2026
Merged

luhenry merged 3 commits into
mainfrom
ruff-format

Conversation

@luhenry

@luhenry luhenry commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Compiles PyO3 bindings around Ruff's parser and formatter, pulled from astral-sh/ruff.git as Cargo git dependencies rather than the ruff PyPI package, so it has no runtime dependency on ruff's own wheel. Upstream publishes no riscv64 wheel.

Mirrors upstream's CI.yml linux job.

Differs from upstream

  • Rust toolchain installed in-container via CIBW_BEFORE_ALL_LINUX - upstream's maturin-action bundles it already.
  • musllinux dropped - rustup.rs ships no riscv64 musl toolchain.

Matrix: abi3 (cp38-abi3, built on cp39) + cp314t, not per-interpreter cp312/cp313/cp314/cp314t.

Testing

  • Upstream ships no test suite; smoke test exercises the three bound functions against outputs verified with the upstream ruff CLI.

License: OK.

PyO3/maturin extension (pyo3 abi3-py38 unconditional in Cargo.toml)
that vendors ruff_python_parser/ruff_python_formatter from
astral-sh/ruff.git as Cargo git dependencies; it has no runtime
Python dependency on the `ruff` PyPI package, so it is not blocked
by ruff's own riscv64 status. Upstream ships no test suite, so
CIBW_TEST_COMMAND exercises the three bound functions against
outputs verified against the upstream ruff CLI.
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-24 07:37 UTC

luhenry added a commit that referenced this pull request Sep 24, 2026
…ruff-format git-dep binding)

Resolves a number collision left by the weekly-rate-limit interruption: both
drafts had claimed 550 independently in the shared worktree. shfmt-py's PR
(#2197) already merged, so it keeps 550; ruff-format's (still open, #2198)
moves to 551.
Pure-Rust maturin projects wrap their extension in a generated
__init__.py (gotcha 308) regardless of interpreter/abi3/free-threading;
assert on the submodule via sys.modules instead of the package's own
__file__.
The two include entries shared no key from the base matrix (version
only), so the second (cp314t) overwrote the first (cp38-abi3) on the
same single combination instead of producing two jobs - the abi3 wheel
was never built. Add tag as a matrix axis so each include updates its
own combination.
luhenry added a commit that referenced this pull request Sep 24, 2026
…__file__ shim)

Replicates PR #2264's bookkeeping directly to main (renumbered 558->559 to
avoid colliding with ifcopenshell's concurrently-landed 558) since that PR's
own agent hit a permission wall pushing to main directly.
@luhenry
luhenry merged commit 1b3309c into main Sep 24, 2026
10 checks passed
@luhenry
luhenry deleted the ruff-format branch September 24, 2026 07:00
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