-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (151 loc) · 4.03 KB
/
pyproject.toml
File metadata and controls
174 lines (151 loc) · 4.03 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv.workspace]
members = ["agent-memory-client"]
[tool.uv.sources]
agent-memory-client = { workspace = true }
[project]
name = "agent-memory-server"
dynamic = ["version"]
description = "A Memory Server for LLM Agents and Applications"
readme = "README.md"
requires-python = ">=3.12,<3.13"
license = { text = "Apache-2.0" }
authors = [{ name = "Andrew Brookins", email = "andrew.brookins@redis.com" }]
dependencies = [
"agent-memory-client>=0.14.1",
"anthropic>=0.15.0",
"fastapi>=0.115.11",
"mcp>=1.6.0",
"numpy>=2.1.0",
"openai>=1.3.7",
"pydantic>=2.5.2",
"pydantic-settings>=2.8.1",
"python-dotenv>=1.0.0",
"pydocket>=0.18.2",
"redisvl>=0.6.0",
"structlog>=25.2.0",
"tiktoken>=0.5.1",
"transformers>=4.51.1",
"uvicorn>=0.24.0",
"sniffio>=1.3.1",
"click>=8.1.0",
"python-jose[cryptography]>=3.3.0",
"httpx>=0.25.0",
"PyYAML>=6.0",
"cryptography>=3.4.8",
"python-ulid>=3.0.0",
"bcrypt>=4.0.0",
"cachetools>=6.2.2,<7.0.0",
"litellm>=1.75.5, <=1.82.6", # For LiteLLM tests. Upper bound pinned: versions 1.82.7+ compromised in supply chain attack.
]
[project.scripts]
agent-memory = "agent_memory_server.cli:cli"
[project.urls]
Homepage = "https://github.com/redis/agent-memory-server"
Repository = "https://github.com/redis/agent-memory-server"
Documentation = "https://github.com/redis/agent-memory-server/tree/main/docs"
Issues = "https://github.com/redis/agent-memory-server/issues"
[tool.hatch.version]
path = "agent_memory_server/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["agent_memory_server"]
[tool.hatch.build.targets.sdist]
include = ["/agent_memory_server"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
addopts = "-v"
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
[tool.ruff]
# Exclude a variety of commonly ignored directories
exclude = [
".git",
".github",
".pytest_cache",
"__pycache__",
"env",
"venv",
".venv",
"*.egg-info",
]
line-length = 88
# Assume Python 3.12
target-version = "py312"
[tool.ruff.lint]
# Enable various rules
select = ["E", "F", "B", "I", "N", "UP", "C4", "RET", "SIM", "TID"]
# Exclude COM812 which conflicts with the formatter
ignore = ["COM812", "E501", "B008"]
# Allow unused variables when underscore-prefixed
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Fix code when possible
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.mccabe]
# Flag functions with high cyclomatic complexity
max-complexity = 10
[tool.ruff.lint.isort]
# Group imports by type and organize them alphabetically
known-first-party = ["redis-memory-server"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
combine-as-imports = true
lines-after-imports = 2
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Use spaces for indentation
indent-style = "space"
[project.optional-dependencies]
dev = [
"agent-memory-client>=0.14.1",
]
aws = [
"boto3>=1.42.1,<2.0.0",
"botocore>=1.42.1,<2.0.0",
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"pytest-asyncio>=0.23.0",
"pytest-xdist>=3.5.0",
"pytest-cov>=4.0.0",
"ruff>=0.3.0",
"testcontainers>=3.7.0",
"pre-commit>=3.6.0",
"freezegun>=1.2.0",
"mypy>=1.16.1",
"ipdb>=0.13.13",
"boto3-stubs[bedrock-runtime]>=1.42.3",
"mypy-boto3-bedrock>=1.42.1",
"mypy-boto3>=1.41.0",
"types-PyYAML>=6.0.12",
]
docs = [
"mkdocs-material>=9.5.0",
"mkdocs-minify-plugin>=0.8.0",
"mkdocs-git-revision-date-localized-plugin>=1.2.0",
]
examples = [
"openai>=1.3.7",
"langchain>=0.3.0",
"langchain-core>=0.3.0",
"langchain-openai>=0.3.0",
"langchain-community>=0.3.0",
"python-dotenv>=1.0.0",
"tavily-python>=0.5.0",
"redis>=5.0.0",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]