-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (142 loc) · 3.47 KB
/
pyproject.toml
File metadata and controls
155 lines (142 loc) · 3.47 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[project]
name = "graphium-core"
description = "A temporal graph building library"
version = "1.0.0"
authors = [
{ name = "Luca Candela", email = "luca.candela@gmail.com" },
]
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
requires-python = ">=3.12"
dependencies = [
"pydantic>=2.11.5",
"neo4j>=5.26.0",
"diskcache>=5.6.3",
"openai>=1.91.0",
"tenacity>=9.0.0",
"numpy>=1.0.0",
"python-dotenv>=1.0.1",
"posthog>=3.0.0",
"litellm>=1.77.7",
"pydantic-settings>=2.11.0",
"aiolimiter>=1.2.1",
"pydantic-ai>=1.0.17",
"json-repair>=0.52.0",
]
[project.urls]
Homepage = "https://github.com/CaliLuke/graphium"
Repository = "https://github.com/CaliLuke/graphium"
[project.optional-dependencies]
anthropic = ["anthropic>=0.49.0"]
groq = ["groq>=0.2.0"]
google-genai = ["google-genai>=1.8.0"]
kuzu = ["kuzu>=0.11.2"]
falkordb = ["falkordb>=1.1.2,<2.0.0"]
voyageai = ["voyageai>=0.2.3"]
neo4j-opensearch = ["boto3>=1.39.16", "opensearch-py>=3.0.0"]
sentence-transformers = ["sentence-transformers>=3.2.1"]
neptune = ["langchain-aws>=0.2.29", "opensearch-py>=3.0.0", "boto3>=1.39.16"]
tracing = ["opentelemetry-api>=1.20.0", "opentelemetry-sdk>=1.20.0"]
dev = [
"pyright>=1.1.404",
"fastapi>=0.115.0",
"uvicorn>=0.30.0",
"fastmcp>=2.12.0",
"mcp>=1.5.0",
"groq>=0.2.0",
"anthropic>=0.49.0",
"google-genai>=1.8.0",
"falkordb>=1.1.2,<2.0.0",
"kuzu>=0.11.2",
"boto3>=1.39.16",
"opensearch-py>=3.0.0",
"langchain-aws>=0.2.29",
"ipykernel>=6.29.5",
"jupyterlab>=4.2.4",
"diskcache-stubs>=5.6.3.6.20240818",
"langgraph>=0.2.15",
"langchain-anthropic>=0.2.4",
"langsmith>=0.1.108",
"langchain-openai>=0.2.6",
"sentence-transformers>=3.2.1",
"transformers>=4.45.2",
"voyageai>=0.2.3",
"pytest>=8.3.3",
"pytest-cov>=7.0.0",
"pytest-asyncio>=0.24.0",
"pytest-xdist>=3.6.1",
"ruff>=0.7.1",
"opentelemetry-sdk>=1.20.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["E501"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
docstring-code-format = true
[tool.pyright]
include = ["graphium_core"]
pythonVersion = "3.10"
typeCheckingMode = "basic"
# ty type checker configuration
[tool.ty.environment]
# Point Ty at the repo's main virtualenv; ensure dev deps are installed with `uv sync --extra dev`.
python = ".venv"
# ty will infer from [project].requires-python; set explicitly if needed
# python-version = "3.12"
root = ["./"]
extra-paths = [
"mcp_server", # first-party MCP package
"graphium_core", # first-party core package
]
[tool.ty.src]
include = [
"graphium_core",
"mcp_server",
]
exclude = [
"docs/examples/**",
"**/*.ipynb",
"tests/**",
"images/**",
]
respect-ignore-files = true
[tool.ty.rules]
# Reduce noise during initial adoption; tighten over time
possibly-unbound-attribute = "warn"
invalid-argument-type = "warn"
invalid-return-type = "warn"
unresolved-attribute = "warn"
missing-argument = "warn"
[tool.ty.terminal]
output-format = "concise"
[dependency-groups]
dev = [
"pytest-cov>=7.0.0",
"radon>=6.0.1",
"ty>=0.0.1a21",
"fastapi>=0.115.0",
"uvicorn>=0.30.0",
]