-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
113 lines (98 loc) · 2.28 KB
/
pyproject.toml
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
111
112
113
[project]
name = "research-mcp"
version = "0.1.0"
description = "A MCP server project"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiosqlite>=0.20.0",
"braintrust>=0.0.173",
"clean-text[gpl]>=0.6.0",
"dspy>=2.5.40",
"exa-py>=1.7.0",
"fastapi>=0.115.5",
"httpx>=0.27.2",
"mcp>=1.0.0",
"pip>=24.3.1",
"python-dotenv>=1.0.1",
"python-multipart>=0.0.17",
"returns>=0.24.0",
"sqlalchemy[asyncio]>=2.0.36",
"stackprinter>=0.2.12",
"tenacity>=9.0.0",
"uvicorn>=0.32.1",
"uvloop>=0.21.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[[project.authors]]
name = "Darin"
email = "[email protected]"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
research-mcp = "research_mcp:run_server"
[tool.ruff]
# Target Python 3.12
target-version = "py312"
# Line length of 100 characters
line-length = 100
[tool.ruff.lint]
preview = true
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
"PL", # pylint
"PLR",
"PLE",
"PLW",
"PT", # pytest
"PTH", # use pathlib
"C4", # comprehensions
"ICN", # import conventions
"PD", # pandas-vet
"PIE", # misc. lints
"TID", # type checking imports (replacement for TCH)
"T20", # type checking
"FURB", # refurb
"PERF", # performance
"FAST", # fastapi
] # Enable select rules
# Ignore specific rules
extend-ignore = [
"B008", # Do not perform function calls in argument defaults
"T201", # print
"RUF029",
"E501",
"PLW0603",
"PLR2004",
"PLC0415",
]
[tool.ruff.format]
quote-style = "single"
preview = true
[tool.ruff.isort]
lines-after-imports = 2
combine-as-imports = true
known-first-party = ["research_mcp"]
[dependency-groups]
dev = [
"pytest>=8.3.3",
"pytest-asyncio>=0.24.0",
"righttyper",
"scalene>=1.5.48",
"memray>=1.11.0", # Memory profiling
"pyinstrument>=4.6.2", # CPU profiling
"vulture>=2.11", # Find dead code
"mypy>=1.13.0",
]
[tool.mypy]
plugins = ['pydantic.mypy']