- uv(workspace) + pnpm monorepo;docker-compose(pg+api+web) - SQLAlchemy 16 MVP 表 + Alembic 初版迁移(无漂移,users stub) - FastAPI 骨架:统一错误信封(带 request_id) + structlog + /jobs/:id + OpenAPI - Next.js 骨架:纸感主题 token + OpenAPI→TS 客户端代码生成(gen:api) - CI(ruff/mypy/pytest + pg service + alembic 漂移校验) - 四份设计规格(PRODUCT/UX/ARCHITECTURE/DEV_PLAN) + CLAUDE.md
52 lines
1.1 KiB
TOML
52 lines
1.1 KiB
TOML
[tool.uv.workspace]
|
||
members = [
|
||
"apps/api",
|
||
"packages/shared",
|
||
"packages/config",
|
||
"packages/db",
|
||
"packages/llm_gateway",
|
||
"packages/core",
|
||
"packages/agents",
|
||
]
|
||
|
||
[dependency-groups]
|
||
dev = [
|
||
"pytest>=8",
|
||
"pytest-asyncio>=0.24",
|
||
"ruff>=0.6",
|
||
"mypy>=1.11",
|
||
"httpx>=0.27",
|
||
"asgi-lifespan>=2.1",
|
||
]
|
||
|
||
[tool.ruff]
|
||
line-length = 100
|
||
target-version = "py312"
|
||
src = ["apps", "packages"]
|
||
|
||
[tool.ruff.lint]
|
||
select = ["E", "F", "I", "UP", "B"]
|
||
|
||
[tool.mypy]
|
||
python_version = "3.12"
|
||
mypy_path = [
|
||
"packages/shared",
|
||
"packages/config",
|
||
"packages/db",
|
||
"packages/llm_gateway",
|
||
"packages/core",
|
||
"packages/agents",
|
||
"apps/api",
|
||
]
|
||
namespace_packages = true
|
||
strict = true
|
||
ignore_missing_imports = true
|
||
explicit_package_bases = true
|
||
# 跨包聚合 mypy 时,多个无包 tests 目录的 conftest.py 会撞成同名模块 `conftest`。
|
||
# conftest 仅含测试 fixtures;从聚合检查中排除(test_*.py / fakes_* 仍按唯一名受检)。
|
||
exclude = ["(^|/)conftest\\.py$"]
|
||
|
||
[tool.pytest.ini_options]
|
||
asyncio_mode = "auto"
|
||
testpaths = ["tests", "apps", "packages"]
|