Open
Conversation
Dependencies Updated:
- SQLAlchemy: ^1.0 → ^2.0
- Python: ^3.7 → ^3.10 (required by SQLAlchemy v2)
- jsonschema: ^3 → ^4
- PyYAML: ^5 → ^6
- Flask-SQLAlchemy: ^2 → ^3
- typing_extensions: ^4.6
- Removed sqlalchemy-stubs (now built into SQLAlchemy v2)
- Removed pytest-flake8 (incompatible with flake8 v7.3)
Code Updates:
- Migrated declarative_base import from sqlalchemy.ext.declarative to sqlalchemy.orm
- Replaced deprecated engine.execute() with engine.connect() context manager pattern
- Added text() wrapper for raw SQL queries
- Removed checks for internal SQLAlchemy relationship attributes (.secondary, .order_by)
- Updated pytest configuration: --strict → --strict-markers
Test Fixes:
- Updated version strings to PEP 440 compliant format ("version 1" → "1.0.0")
- Replaced obsolete wheel import error test with build error test
- Updated mypy output expectations for SQLAlchemy v2 type hints
- Fixed 9 test files using old declarative_base import
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.
Dependencies Updated:
Code Updates:
Test Fixes: