Tighten JSON and source type checks
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20260419-stronger-type-checking-64a26f72e878Versions newest first
- v2 Latest3 patches 1 replyApplied
- v16 patches 1 replySuperseded
Changes in v2 from the cover letter
- Rebase onto 0.2.0 and drop the CI, formatting and checker setup
covered by a047342a231d.
- Centralize the mutually recursive JSON object/value aliases and
preserve null label and attachment arrays; model null labels in tests.
- Align the interpreter matrix and installation documentation with
the Python 3.10 minimum already introduced in v1.
- Declare typing-extensions for the test double's override decorator
and update uv.lock without upgrading the retained dependencies.
- Update CONTRIBUTING alongside the README development instructions.
- Link to v1: https://patch.msgid.link/[email protected]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Narrow JSON types and type test doublesCONTRIBUTING.md README.md ci-matrix.sh +9 more | +257 | 0 replies | |
| 2/3 | Enable strict pyright source checkspyproject.toml src/ src/ +1 more | +28 | 0 replies | |
| 3/3 | Document local CI checksCONTRIBUTING.md README.md | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH ezgb v2 0/3] Tighten JSON and source type checks
Upstream a047342a231d superseded the CI, formatting and checker setup from v1. These three remaining patches narrow JSON and git objects, replace the dynamic writer test double with a typed subclass, and enable strict Pyright checks for source code. They also align the contributor documentation with the uv-based CI workflow.
The Python 3.10 minimum was already part of v1; this revision also updates the interpreter matrix and installation documentation to match.
---
Changes in v2:
- Rebase onto 0.2.0 and drop the CI, formatting and checker setup
covered by a047342a231d.
- Centralize the mutually recursive JSON object/value aliases and
preserve null label and attachment arrays; model null labels in tests.
- Align the interpreter matrix and installation documentation with
the Python 3.10 minimum already introduced in v1.
- Declare typing-extensions for the test double's override decorator
and update uv.lock without upgrading the retained dependencies.
- Update CONTRIBUTING alongside the README development instructions.
- Link to v1: https://patch.msgid.link/[email protected]
---
Tamir Duberstein (3):
Narrow JSON types and type test doubles
Enable strict pyright source checks
Document local CI checks
CONTRIBUTING.md | 17 +-- README.md | 15 ++- ci-matrix.sh | 4 +- docs/installation.rst | 2 +- pyproject.toml | 16 +-- src/ezgb/__init__.py | 17 ++- src/ezgb/_models.py | 4 +- src/ezgb/_reader.py | 190 +++++++++++++++++++-------- src/ezgb/_types.py | 17 +++ tests/conftest.py | 89 ++++++------- tests/test_ezgb.py | 42 ++++-- tests/test_integration.py | 21 +-- uv.lock | 328 ++++------------------------------------------ 13 files changed, 300 insertions(+), 462 deletions(-)
---
base-commit: b6f280f1dc99d57550e92798167c6a16d53ebf57
change-id: 20260419-stronger-type-checking-64a26f72e878
Best regards,
Signature · 1 line
Tamir Duberstein <[email protected]>