Update dependencies and GitHub Actions versions#111
Merged
Zac-HD merged 7 commits intopython-jsonschema:masterfrom Dec 5, 2025
Merged
Conversation
Member
Zac-HD
commented
Dec 3, 2025
- actions/checkout: v2 → v6
- actions/setup-python: v1/v2 → v6
- Python matrix: drop 3.8/3.9, add 3.13/3.14, update PyPy to 3.11
- Regenerate all pinned deps with latest versions
- Update ruff config to new lint section format
- Fix mypy issues (remove stale type: ignore comments)
- Mark known $ref/$id resolution bug as xfail
d7f7f7a to
b950338
Compare
- actions/checkout: v2 → v6 - actions/setup-python: v1/v2 → v6 - Python matrix: drop 3.8/3.9, add 3.13/3.14, update PyPy to 3.11 - Regenerate all pinned deps with latest versions - Update ruff config to new lint section format - Fix mypy issues (remove stale type: ignore comments) - Mark known $ref/$id resolution bug as xfail - Add pre-commit config to run tox check
b950338 to
f83e8c4
Compare
Another $ref/$id resolution bug exposed by newer jsonschema.
- Normalise -0.0 to 0.0 in get_number_bounds for consistent comparisons - Convert whole-number float multipleOf values to int for proper type inference - Use PyPy 3.11 in CI
The encode_canonical_json call at the start of canonicalish already converts integer-valued floats to ints, making this branch unreachable.
PyPy treats 0 and 0.0 as different values in set operations, causing the generator to create [0, 0.0] which jsonschema then rejects as having non-unique elements (since 0 == 0.0 for validation purposes).
On CPython, encode_canonical_json converts integer-valued floats to ints, but on PyPy the custom JSON encoder doesn't work (it's set to None). Add explicit float-to-int conversion for multipleOf with pragma: no cover since this branch is only exercised on PyPy.
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.