Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new ParamsDecoder utility for parsing JSON query parameters in FastAPI endpoints, updates the ruff pre-commit hook to v0.14.5, and bumps the project version to 0.2.1.
- Introduces
ParamsDecoderutility for decoding stringified JSON query parameters into Python models - Updates
ruffpre-commit hook from v0.13.2 to v0.14.5 - Adds
orjsondependency for fast JSON parsing
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/jetpack/utils/parse_utils.py | Implements the new ParamsDecoder utility class for JSON parameter parsing |
| pyproject.toml | Adds orjson>=3.11.4 dependency and bumps version to 0.2.1 |
| .pre-commit-config.yaml | Updates ruff pre-commit hook to v0.14.5 |
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.
This pull request updates dependencies and introduces a new utility for parsing JSON parameters in FastAPI endpoints. The most significant changes include upgrading the
ruffpre-commit hook, adding theorjsondependency, and implementing theParamsDecoderutility.Dependency updates:
ruffpre-commit hook in.pre-commit-config.yamlfrom versionv0.13.2tov0.14.5to ensure the latest linting features and bug fixes.orjsonlibrary (version>=3.11.4) to the dependencies inpyproject.tomlfor fast and correct JSON serialization/deserialization.New utility implementation:
ParamsDecodertosrc/jetpack/utils/parse_utils.py, providing a reusable way to decode stringified JSON query parameters into Python models for FastAPI endpoints.Version bump:
pyproject.tomlfrom0.2.0to0.2.1to reflect the new features and dependency changes.