checkpoint: SQLite 清理——业务/测试层统一 PostgreSQL(删 aiosqlite/fakeredis)
- setting: DATABASE_TYPE 收窄为 postgres,DB_URI/ASYNC_DB_URI 去 sqlite 分支 - database: create_async_engine_and_session 去 sqlite 分支(同步 psycopg 引擎保留给 jobstore) - number_gen: 去 DATABASE_TYPE 非 postgres 早退(advisory lock 恒定走 PG) - chat/crud: 删 SqliteDb 分支(agno 无硬依赖) - pyproject/requirements/uv.lock: 删 aiosqlite、fakeredis;conftest 口径注释同步 - test_stat_analysis_tc: docstring 口径 SQLite→PG
This commit is contained in:
@@ -43,15 +43,13 @@ postgres = ["asyncpg==0.31.0"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"aiosqlite==0.22.1", # 测试:SQLite 内存库(conftest 固定 DATABASE_TYPE=sqlite,勿移除)
|
||||
"fakeredis>=2.21.0,<3", # 测试:内存 Redis,配合 TESTING
|
||||
"pytest==9.0.2",
|
||||
"pytest-asyncio>=0.24.0", # 异步测试支持
|
||||
"ruff==0.14.13", # 代码检查/格式化
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
default-groups = ["dev"] # 本地 uv sync 含 dev;生产 pip -r requirements.txt 不含 pytest/ruff/fakeredis
|
||||
default-groups = ["dev"] # 本地 uv sync 含 dev;生产 pip -r requirements.txt 不含 pytest/ruff
|
||||
|
||||
[[tool.uv.index]]
|
||||
name = "tuna"
|
||||
@@ -118,7 +116,7 @@ ignore = [
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/conftest.py" = ["E402"] # 先设置 TESTING/SQLite 环境再 import 应用
|
||||
"tests/conftest.py" = ["E402"] # 先设置 TESTING/PostgreSQL 环境再 import 应用
|
||||
|
||||
[tool.ruff.format]
|
||||
docstring-code-format = true
|
||||
|
||||
Reference in New Issue
Block a user