Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (101 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (101 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[project]
name = "papermind"
version = "0.1.0"
description = "PaperMind research pipeline backend"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"alembic>=1.14.0",
"apscheduler>=3.10.4",
"fastapi>=0.116.0",
"fastmcp>=2.3",
"httpx>=0.28.1",
"jinja2>=3.1.4",
"pgvector>=0.3.0",
"psycopg2-binary>=2.9.10",
"pydantic-settings>=2.10.1",
"python-dotenv>=1.1.1",
"python-jose[cryptography]>=3.3.0",
"passlib[bcrypt]>=1.7.4",
"sqlalchemy>=2.0.43",
"typer>=0.12",
"uvicorn>=0.35.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.4.1",
"ruff>=0.12.12",
"pre-commit>=4.0.0",
"pyinstaller>=6.0",
]
llm = [
"openai>=1.102.0",
"anthropic>=0.62.0",
]
pdf = [
"pymupdf>=1.25.5",
]
pdf_translate = [
"pdf2zh>=1.9",
]
# 相似度散点图(UMAP 降维)用,similarity.py 隐式依赖;不进核心 dependencies 避免核心变重
graph = [
"numpy>=1.26",
"scikit-learn>=1.4",
"umap-learn>=0.5",
]
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project.scripts]
pm = "apps.cli.main:app"
[tool.setuptools]
packages = [
"apps",
"apps.api",
"apps.cli",
"apps.worker",
"packages",
"packages.ai",
"packages.domain",
"packages.integrations",
"packages.storage",
]
[tool.ruff]
line-length = 100
target-version = "py311"
exclude = [
".git",
".venv",
"__pycache__",
"node_modules",
"data",
"infra/migrations/versions",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B905", # zip without strict
"SIM108", # use ternary operator
]
[tool.ruff.lint.isort]
known-first-party = ["apps", "packages"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"