主要更新: - 更新代理商端文档,明确项目由品牌方分配流程 - 新增Brief配置详情页(已配置)设计稿 - 完善工作台紧急待办中品牌新任务功能 - 整理Pencil设计文件中代理商端页面顺序 - 新增后端FastAPI框架及核心API - 新增前端Next.js页面和组件库 - 添加.gitignore排除构建和缓存文件 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
77 lines
1.6 KiB
TOML
77 lines
1.6 KiB
TOML
[project]
|
|
name = "miaosi-backend"
|
|
version = "1.0.0"
|
|
description = "秒思智能审核平台后端服务"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastapi>=0.109.0",
|
|
"uvicorn>=0.27.0",
|
|
"celery>=5.3.0",
|
|
"redis>=5.0.0",
|
|
"sqlalchemy>=2.0.0",
|
|
"asyncpg>=0.29.0",
|
|
"greenlet>=3.0.0",
|
|
"httpx>=0.26.0",
|
|
"pydantic>=2.5.0",
|
|
"pydantic-settings>=2.0.0",
|
|
"python-jose>=3.3.0",
|
|
"passlib>=1.7.4",
|
|
"alembic>=1.13.0",
|
|
"cryptography>=42.0.0",
|
|
"openai>=1.12.0",
|
|
"cachetools>=5.3.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"pytest-cov>=4.1.0",
|
|
"httpx>=0.26.0",
|
|
"testcontainers>=3.7.0",
|
|
"factory-boy>=3.3.0",
|
|
"faker>=22.0.0",
|
|
"respx>=0.20.0",
|
|
"aiosqlite>=0.19.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = "test_*.py"
|
|
python_classes = "Test*"
|
|
python_functions = "test_*"
|
|
asyncio_mode = "auto"
|
|
addopts = "-v --tb=short --strict-markers"
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"integration: marks tests as integration tests",
|
|
"e2e: marks tests as end-to-end tests",
|
|
]
|
|
filterwarnings = [
|
|
"ignore::DeprecationWarning",
|
|
]
|
|
|
|
[tool.coverage.run]
|
|
source = ["app"]
|
|
branch = true
|
|
omit = [
|
|
"*/migrations/*",
|
|
"*/__init__.py",
|
|
"*/tests/*",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"raise NotImplementedError",
|
|
"if TYPE_CHECKING:",
|
|
]
|