forked from sansan0/TrendRadar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (52 loc) · 1.21 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (52 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[project]
name = "trendradar"
version = "6.6.1"
description = "TrendRadar - 热点新闻聚合与分析工具"
requires-python = ">=3.12"
dependencies = [
"requests==2.33.0",
"pytz==2026.1",
"PyYAML==6.0.3",
"fastmcp==2.12.5",
"websockets==13.1",
"feedparser==6.0.12",
"boto3==1.42.76",
"litellm==1.82.6",
"json-repair==0.58.6",
"tenacity==8.5.0",
"fastapi==0.115.0",
"uvicorn==0.34.0",
"pydantic>=2.7",
"pydantic-settings>=2.3",
]
[project.scripts]
trendradar = "trendradar.__main__:main"
trendradar-mcp = "mcp_server.server:run_server"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"pytest-mock>=3.12",
"pytest-asyncio>=0.23",
"mypy>=1.10",
"ruff>=0.5",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["trendradar", "mcp_server"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py312"