video-compliance-ai/backend/pyproject.toml
Your Name a2f6f82e15 chore: CI/CD + 前端测试 + 安全加固 + 限流完善
- 新增 .gitlab-ci.yml (lint/test/build 三阶段)
- 新增前端测试: taskStageMapper (109), api.ts (36), AuthContext (16)
- 修复旧测试: Sidebar 导航文案、MobileLayout padding 值
- python-jose → PyJWT 消除 ecdsa CVE 漏洞
- 限流中间件增加 5 个敏感端点精细限流 + 标准限流头

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 11:25:29 +08:00

79 lines
1.7 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[email]>=2.5.0",
"pydantic-settings>=2.0.0",
"PyJWT>=2.8.0",
"passlib>=1.7.4",
"alembic>=1.13.0",
"cryptography>=42.0.0",
"openai>=1.12.0",
"cachetools>=5.3.0",
"sse-starlette>=2.0.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",
"ignore::jwt.warnings.InsecureKeyLengthWarning",
]
[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:",
]