1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-08 23:15:27 +02:00

prs-fleshgolem-2070: feat: sqlalchemy 2.0 (#2096)

* upgrade sqlalchemy to 2.0

* rewrite all db models to sqla 2.0 mapping api

* fix some importing and typing weirdness

* fix types of a lot of nullable columns

* remove get_ref methods

* fix issues found by tests

* rewrite all queries in repository_recipe to 2.0 style

* rewrite all repository queries to 2.0 api

* rewrite all remaining queries to 2.0 api

* remove now-unneeded __allow_unmapped__ flag

* remove and fix some unneeded cases of "# type: ignore"

* fix formatting

* bump black version

* run black

* can this please be the last one. okay. just. okay.

* fix repository errors

* remove return

* drop open API validator

---------

Co-authored-by: Sören Busch <fleshgolem@gmx.net>
This commit is contained in:
Hayden 2023-02-06 18:43:12 -09:00 committed by GitHub
parent 91cd00976a
commit 9e77a9f367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
86 changed files with 1776 additions and 1572 deletions

View file

@ -12,7 +12,7 @@ start = "mealie.app:main"
Jinja2 = "^3.1.2"
Pillow = "^9.2.0"
PyYAML = "^5.3.1"
SQLAlchemy = "^1.4.29"
SQLAlchemy = "^2"
aiofiles = "^22.1.0"
alembic = "^1.7.5"
aniso8601 = "9.0.1"
@ -43,12 +43,11 @@ tzdata = "^2022.7"
uvicorn = {extras = ["standard"], version = "^0.20.0"}
[tool.poetry.group.dev.dependencies]
black = "^21.12b0"
black = "^23.1.0"
coverage = "^7.0"
coveragepy-lcov = "^0.1.1"
mkdocs-material = "^9.0.0"
mypy = "^0.991"
openapi-spec-validator = "^0.5.0"
pre-commit = "^3.0.4"
pydantic-to-typescript = "^1.0.7"
pylint = "^2.6.0"