-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (101 loc) · 2.57 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
114
115
116
117
118
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "agent-memory-server"
version = "0.2.0"
description = "A Redis-powered memory server built for AI agents and applications."
readme = "README.md"
requires-python = ">=3.12,<3.13"
license = { text = "MIT" }
authors = [{ name = "Andrew Brookins", email = "[email protected]" }]
dependencies = [
"fastapi>=0.115.11",
"uvicorn>=0.24.0",
"redis>=5.0.1",
"openai>=1.3.7",
"anthropic>=0.15.0",
"pydantic>=2.5.2",
"python-dotenv>=1.0.0",
"tiktoken>=0.5.1",
"numpy>=2.1.0",
"pydantic-settings>=2.8.1",
"bertopic>=0.16.4,<0.17.0",
"structlog>=25.2.0",
"transformers>=4.30.0,<=4.50.3",
"numba>=0.60.0",
"nanoid>=2.0.0",
"mcp>=1.6.0",
"sentence-transformers>=3.4.1",
"accelerate>=1.6.0",
"redisvl>=0.5.1",
]
[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"
[dependency-groups]
dev = [
"pytest>=8.3.5",
"pytest-asyncio>=0.23.0",
"pytest-xdist>=3.5.0",
"ruff>=0.3.0",
"testcontainers>=3.7.0",
"pre-commit>=3.6.0",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]