Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the Ruff tooling and compatibility update.
No open issues 🎉
What changed in this PR
Updates the project’s development tooling for Ruff 0.16 and adapts source code, tests, and generated documentation to its linting and formatting rules.
Changes:
- Locks Ruff to 0.16.10, adjusts its development dependency range and test lint exceptions, and refreshes the minimal lockfile.
- Makes selected parameters keyword-only, updates callers, and simplifies union annotations.
- Refreshes formatting in generated README examples and golden records.
| File | Description |
|---|---|
tests/test___init__.py |
Uses keyword arguments for configuration creation. |
tests/conftest.py |
Updates the configuration fixture to keyword arguments. |
pyproject.toml |
Adjusts Ruff’s version range and test lint exceptions. |
pdm.minimal.lock |
Refreshes minimal dependencies and Ruff group membership. |
pdm.lock |
Updates Ruff to 0.16.10. |
openapi_python_client/schema/openapi_schema_pydantic/schema.py |
Places None last in union annotations. |
openapi_python_client/parser/properties/uuid.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/string.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/none.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/model_property.py |
Simplifies the additional-properties union annotation. |
openapi_python_client/parser/properties/int.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/float.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/file.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/datetime.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/date.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/boolean.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/any.py |
Makes builder parameters keyword-only. |
openapi_python_client/parser/properties/__init__.py |
Makes property parsing parameters keyword-only. |
openapi_python_client/config.py |
Makes configuration factory parameters keyword-only. |
openapi_python_client/cli.py |
Updates configuration calls and the command signature. |
integration-tests/README.md |
Reformats generated Python examples. |
fuzz/test_codegen.py |
Uses keyword arguments for configuration creation. |
end_to_end_tests/test_end_to_end.py |
Updates helper signatures and calls to keyword arguments. |
end_to_end_tests/golden-records/test-3-1-features-client/README.md |
Refreshes README example formatting. |
end_to_end_tests/golden-records/my-test-api-client/README.md |
Refreshes README example formatting. |
end_to_end_tests/golden-records/my-enum-api-client/README.md |
Refreshes README example formatting. |
end_to_end_tests/golden-records/escapes-client/README.md |
Refreshes README example formatting. |
end_to_end_tests/golden-records/docstrings-on-attributes-golden-record/README.md |
Refreshes README example formatting. |
end_to_end_tests/generated_client.py |
Makes helper options keyword-only and updates internal calls. |
end_to_end_tests/functional_tests/helpers.py |
Passes inline-generation options by keyword. |
Review effort: Balanced
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.
No description provided.