Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(deps): 修复前后端依赖安全漏洞
  • Loading branch information
xuxinyu
xuxinyu committed Oct 2, 2026
commit 83ef09d6b0486106014bb7372c2afc36989472cb
22 changes: 19 additions & 3 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dependencies = [
"ansi2html>=1.9.2",
"anthropic>=0.40.0",
"celery>=5.4.0",
"chromadb>=0.4.0",
"e2b-code-interpreter>=1.0.5",
"fastapi[standard]>=0.115.8",
"httpx[socks]>=0.28.1",
Expand All @@ -30,12 +29,11 @@ dependencies = [
"pypandoc-binary>=1.15",
"rank-bm25>=0.2.2",
"redis>=5.2.1",
"requests>=2.32.0",
"requests>=2.33.0",
"scikit-learn>=1.6.1",
"scipy>=1.15.2",
"seaborn>=0.13.2",
"semanticscholar>=0.10.0",
"sentence-transformers>=2.2.0",
"shap>=0.51.0",
"statsmodels>=0.14.4",
"uvicorn[standard]>=0.34.0",
Expand All @@ -49,6 +47,24 @@ dev = [
]


[tool.uv]
# 安全版本下限约束只影响已被引入的依赖,避免重新解析时回退到漏洞版本。
constraint-dependencies = [
"anyio>=4.14.2",
"click>=8.3.3",
"fonttools>=4.60.2",
"idna>=3.15",
"jupyter-core>=5.8.1",
"pillow>=12.3.0",
"protobuf>=5.29.6",
"pygments>=2.20.0",
"python-dotenv>=1.2.2",
"python-multipart>=0.0.31",
"setuptools>=83.0.0",
"starlette>=1.3.1",
"tornado>=6.5.9",
"urllib3>=2.8.0",
]

[tool.ruff]
# Exclude a variety of commonly ignored directories.
Expand Down
Loading