6c1a69af0d
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
64 lines
1.3 KiB
TOML
64 lines
1.3 KiB
TOML
[project]
|
|
name = "law-graph-kg"
|
|
version = "0.1.0"
|
|
description = "国土空间规划法规知识图谱构建与分析系统"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"hanlp>=2.1.0",
|
|
"openai>=1.0.0",
|
|
"anthropic>=0.18.0",
|
|
"dashscope>=1.17.0", # 阿里云Qwen API
|
|
"volcengine-python-sdk>=1.0.0", # 字节跳动Doubao API
|
|
"zhipuai>=2.0.0", # 智谱GLM API
|
|
"networkx>=3.2.0",
|
|
"python-igraph>=0.11.0",
|
|
"pyyaml>=6.0",
|
|
"pandas>=2.0.0",
|
|
"python-dotenv>=1.0.0",
|
|
"numpy>=1.24.0",
|
|
"tqdm>=4.66.0",
|
|
"aiohttp>=3.9.0",
|
|
"tenacity>=8.2.0", # 重试机制
|
|
"python-docx>=1.1.0", # Word文档解析
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"black>=23.0.0",
|
|
"ruff>=0.1.0",
|
|
"mypy>=1.5.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src"]
|
|
|
|
[tool.uv]
|
|
dev-dependencies = [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"black>=23.0.0",
|
|
"ruff>=0.1.0",
|
|
"mypy>=1.5.0",
|
|
]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py312']
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py312"
|
|
|
|
[tool.mypy]
|
|
python_version = "3.12"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
|