feat: database with tortoise orm
This commit is contained in:
+5
-1
@@ -7,6 +7,7 @@ requires-python = ">=3.14"
|
||||
dependencies = [
|
||||
"flask>=3.1.3,<4.0.0",
|
||||
"gunicorn>=26.0.0,<27.0.0",
|
||||
"tortoise-orm[asyncpg]>=1.1.7,<2.0.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
@@ -31,12 +32,15 @@ add-bounds = "major"
|
||||
module-root = ""
|
||||
module-name = "app"
|
||||
|
||||
[tool.ruff]
|
||||
exclude = ["app/migrations"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["ALL"]
|
||||
ignore = ["D", "E501", "ANN401", "BLE001", "COM812", "S101", "PT", "S104"]
|
||||
|
||||
[tool.ty.src]
|
||||
include = ["app", "tests"]
|
||||
include = ["app"]
|
||||
|
||||
[tool.ty.environment]
|
||||
python = "./.venv/bin/python3"
|
||||
|
||||
Reference in New Issue
Block a user