-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (127 loc) · 4.88 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (127 loc) · 4.88 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "graphmem-mcp"
# Single source of truth: read from graph_mem.__version__ so the package
# metadata and the runtime constant cannot drift apart.
dynamic = ["version"]
description = "Production-grade Graph-RAG MCP server with local embeddings — persistent knowledge graphs for any LLM-powered CLI agent"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "graph-mem contributors" },
]
keywords = [
"mcp",
"model-context-protocol",
"knowledge-graph",
"graph-rag",
"memory",
"agent-memory",
"embeddings",
"semantic-search",
"sqlite",
"llm",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Database :: Database Engines/Servers",
"Operating System :: OS Independent",
"Typing :: Typed",
]
dependencies = [
"mcp>=1.0",
"sqlite-vec>=0.1.6",
"click>=8.0",
"python-ulid>=3.0.0",
"aiosqlite>=0.20.0",
"numpy>=1.24",
# Declared directly, not relied on transitively through mcp: the tool
# modules import pydantic themselves to define the per-item argument models
# that give add_entities and add_relationships a real JSON schema.
"pydantic>=2.0",
]
[project.optional-dependencies]
embeddings = ["sentence-transformers>=2.0"]
onnx = ["onnxruntime>=1.15"]
ui = ["aiohttp>=3.9"]
full = ["sentence-transformers>=2.0", "onnxruntime>=1.15", "aiohttp>=3.9"]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.23",
"pytest-aiohttp>=1.0",
"pytest-cov>=4.0",
"hypothesis>=6.100",
"coverage>=7.0",
# The two gates that decide whether a change is accepted are pinned to a
# minor line, not left open. Both ruff's formatter and mypy's inference
# change between minor releases, so an open range means a contributor and
# CI can disagree about whether identical code passes — which is what
# happened: ruff 0.14 locally and 0.15 in CI reformatted a file
# differently and failed a release that was green on the machine that cut
# it. Bump these deliberately, then reformat in the same commit.
"ruff>=0.14.14,<0.15",
"mypy>=1.19,<1.20",
]
[project.scripts]
graph-mem = "graph_mem.cli.main:cli"
[project.urls]
Homepage = "https://github.com/Sathvik-1007/GraphMem-MCP"
Documentation = "https://github.com/Sathvik-1007/GraphMem-MCP#readme"
Repository = "https://github.com/Sathvik-1007/GraphMem-MCP"
Issues = "https://github.com/Sathvik-1007/GraphMem-MCP/issues"
[tool.hatch.version]
path = "src/graph_mem/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/graph_mem"]
[tool.hatch.build.targets.wheel.force-include]
# skills/ lives outside src/, so it has to be pulled in explicitly. The UI
# bundle does not: it is built into src/graph_mem/ui/frontend and the package
# walk above already includes it. Force-including it as well made hatchling
# add every file twice and abort the wheel build.
"skills/graph-mem" = "graph_mem/_bundled_skills/graph-mem"
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "SIM", "TCH", "RUF"]
[tool.ruff.lint.isort]
known-first-party = ["graph_mem"]
[tool.mypy]
# Deliberately not setting python_version. It pins mypy's parser to that
# version, and third-party stubs increasingly use PEP 695 syntax that a 3.10
# parser rejects — numpy 2.5's stubs fail with "Type statement is only
# supported in Python 3.12 and greater", which is a fact about numpy, not about
# this code. Ruff's target-version = "py310" still enforces 3.10-compatible
# syntax in our own source, and the test matrix runs 3.10 through 3.13, so
# compatibility is verified where it can actually be observed.
strict = true
warn_return_any = true
warn_unused_configs = true
# Neither package ships a py.typed marker. Both are imported in exactly one
# place, behind a try/except, and their results are narrowed immediately, so
# the untyped boundary is contained. follow_untyped_imports (not
# ignore_missing_imports) is the setting for "installed but unstubbed".
[[tool.mypy.overrides]]
module = ["sqlite_vec.*", "onnxruntime.*"]
follow_untyped_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
asyncio_mode = "auto"
# Warnings are errors. An exception escaping aiosqlite's connection worker
# thread means a use-after-close or a cancelled in-flight operation, and it was
# previously silenced here rather than fixed.
filterwarnings = ["error"]