2025-04-28 22:53:13 +08:00
|
|
|
[project]
|
2026-03-17 10:16:44 +08:00
|
|
|
name = "yuxi-workspace"
|
2026-05-14 19:20:02 +08:00
|
|
|
version = "0.6.2.beta"
|
2025-11-12 19:53:56 +08:00
|
|
|
description = "基于大模型的智能知识库与知识图谱智能体开发平台,融合了 RAG 技术与知识图谱技术,基于 LangGraph v1 + Vue.js + FastAPI + LightRAG 架构构建"
|
2025-04-28 22:53:13 +08:00
|
|
|
readme = "README.md"
|
2026-01-16 15:43:41 +08:00
|
|
|
requires-python = ">=3.12,<3.14"
|
2025-04-28 22:53:13 +08:00
|
|
|
dependencies = [
|
2025-11-05 02:05:23 +08:00
|
|
|
"fastapi>=0.121",
|
2025-04-28 22:53:13 +08:00
|
|
|
"uvicorn[standard]>=0.34.2",
|
2026-02-25 16:26:09 +08:00
|
|
|
"arq>=0.26.3",
|
2026-04-01 17:00:04 +08:00
|
|
|
"yuxi",
|
2025-04-28 22:53:13 +08:00
|
|
|
]
|
2025-05-23 15:30:14 +08:00
|
|
|
[tool.ruff]
|
2025-09-01 22:37:03 +08:00
|
|
|
line-length = 120 # 代码最大行宽
|
2025-05-24 11:29:45 +08:00
|
|
|
lint.select = [ # 选择的规则
|
2025-05-23 15:30:14 +08:00
|
|
|
"F",
|
|
|
|
|
"E",
|
|
|
|
|
"W",
|
|
|
|
|
"UP",
|
|
|
|
|
]
|
2025-06-25 02:12:01 +08:00
|
|
|
|
2026-01-16 15:43:41 +08:00
|
|
|
[tool.uv]
|
|
|
|
|
|
|
|
|
|
[[tool.uv.index]]
|
|
|
|
|
name = "tsinghua"
|
|
|
|
|
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
|
|
|
|
|
default = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[tool.uv.index]]
|
|
|
|
|
name = "pytorch-cpu"
|
|
|
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
|
|
|
explicit = true
|
|
|
|
|
|
|
|
|
|
[tool.uv.sources]
|
2026-04-03 13:09:12 +08:00
|
|
|
yuxi = { path = "package", editable = true }
|
2026-01-16 15:43:41 +08:00
|
|
|
torch = { index = "pytorch-cpu" }
|
|
|
|
|
torchvision = { index = "pytorch-cpu" }
|
|
|
|
|
|
|
|
|
|
|
2025-09-20 22:53:37 +08:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
addopts = "-v --tb=short"
|
2026-03-30 15:24:47 +08:00
|
|
|
testpaths = ["test/unit", "test/integration", "test/e2e"]
|
2026-04-01 16:55:29 +08:00
|
|
|
pythonpath = [".", "package"]
|
2025-09-20 22:53:37 +08:00
|
|
|
markers = [
|
2026-03-30 15:24:47 +08:00
|
|
|
"unit: marks tests that run without live services",
|
2025-09-20 22:53:37 +08:00
|
|
|
"auth: marks tests that require authentication",
|
|
|
|
|
"slow: marks tests as slow",
|
2026-03-30 15:24:47 +08:00
|
|
|
"integration: marks tests as integration tests",
|
|
|
|
|
"e2e: marks tests as end-to-end tests"
|
2025-09-20 22:53:37 +08:00
|
|
|
]
|
|
|
|
|
asyncio_mode = "auto"
|
|
|
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
|
|
|
|
|
|
|
|
|
2025-06-25 02:12:01 +08:00
|
|
|
[dependency-groups]
|
|
|
|
|
dev = [
|
2025-07-02 02:38:36 +08:00
|
|
|
"ruff>=0.12.1",
|
2025-06-25 02:12:01 +08:00
|
|
|
]
|
2025-09-20 22:53:37 +08:00
|
|
|
test = [
|
|
|
|
|
"pytest>=8.0.0",
|
|
|
|
|
"pytest-asyncio>=0.24.0",
|
|
|
|
|
"pytest-httpx>=0.32.0",
|
|
|
|
|
"pytest-cov>=6.0.0",
|
|
|
|
|
]
|