Repository navigation
🤖 ci: test built wheels, ship type stubs, add ruff - #61
Merged
Merged
Conversation
The pytest matrix rebuilt the extension from source for each of five interpreters, plus once more for a coverage job that only measured Python code (there is none). Download the manylinux x86_64 wheels instead, cover 3.14t, 3.15t and PyPy 3.11 too, assert the free-threaded builds keep the GIL off, and make release depend on the tests. Drop the coverage job and the now unused pytest-cov extra. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add e57.pyi; maturin packages it with py.typed. CI checks it against the compiled module with mypy.stubtest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The manylinux image builds pypy311_pp73 wheels, which the current PyPy 3.11 (pp80 ABI) can't install, so the job could never pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Shape-typed arrays: points/color (n, 3), intensity (n, 1). - Document that color/intensity are empty if any scan lacks them, and that color falls back to greyscale from intensity. - Document raised exceptions. - E57.__init__ -> NoReturn, since E57() raises TypeError at runtime. - Mirror the docs on the Rust items so help() matches the stub. - Test array dtypes/shapes and that E57() raises. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep docstrings in e57.pyi (PYI021 ignored): for a compiled module they are what IDEs show. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Applied review feedback:
Not applied:
Found while documenting errors, not fixed here: Verified locally (3.14 wheel): stubtest clean, pytest 21 passed, ruff, cargo fmt and clippy clean. 🤖 Generated with Claude Code |
dancergraham
marked this pull request as ready for review
November 22, 2026 12:41
This was referenced Nov 22, 2026
dancergraham
added a commit
that referenced
this pull request
Nov 22, 2026
🤖 ci: test built wheels, ship type stubs, add ruff (re-land #61)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #60 (base will retarget to
mainonce #60 merges).pytestmatrix rebuilt the extension from source for 5 interpreters, andcoveragerebuilt it again. Thepytestmatrix now downloads thewheels-linux-x86_64artifact and tests it on 3.11–3.15, 3.14t and 3.15t (already built, never tested). Free-threaded jobs also assert that importinge57leaves the GIL disabled (pyo3 0.30 already declaresgil_used = falseby default; checked locally on 3.14t). The redundant x86_64 pytest step in thelinuxjob is removed.releasenow also needspytest(andstubtest,ruff).coveragejob:--cov=e57measures Python code and the package is entirely Rust. Removed the now unusedpytest-covfrom thetestextra. Rust coverage would needcargo-llvm-cov; not done here.e57.pyi; with a stub present maturin ships ane57/package (__init__.pyre-exporting the compilede57.e57) pluspy.typed.import e57and its public names are unchanged. Newstubtestjob runsmypy.stubtestagainst the built wheel (stubtest-allowlist.txtonly allowlists the privatee57.e57submodule).ruff check+ruff format --check(ruff pinned to 0.17.3); fixed the one import-order and one formatting issue.New actions:
astral-sh/setup-uvv10.3.3, pinned by SHA,enable-cache: false(avoids cache-poisoning in a release workflow). Picked over v10.4.0 and ruff 0.17.6, which are under two weeks old.Verified locally:
mypy.stubtest e57 --allowlist stubtest-allowlist.txt→ no issues;pytest18 passed; mypy infersread_points(...).pointsasndarray[..., dtype[float64]].sys._is_gil_enabled()is False afterimport e57;pytest18 passed.ruff@0.17.3 check/format --checkclean;zizmorno findings;actionlintclean.PyPy is not tested: the manylinux image builds
pypy311_pp73wheels, but current PyPy 3.11 has thepp80ABI, so it can't install them and falls back to the sdist, which needs Rust. That's a packaging gap to fix separately.Left as is:
E57.__module__isbuiltins(nomodule=on the#[pyclass]), which affects its repr; that's a Rust change, so it's not in this PR. Trusted publishing still needs PyPI-side setup.🤖 Generated with Claude Code