forked from afx-team/hebb-mind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (149 loc) · 5.23 KB
/
Copy pathpyproject.toml
File metadata and controls
164 lines (149 loc) · 5.23 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
[project]
name = "hebb-mind"
# Bumped MANUALLY on release (release-please automation removed). Keep in sync
# with src/hebb/__init__.py, .release-please-manifest.json, and
# .claude-plugin/plugin.json. publish.yml ships to PyPI when this version
# changes on main.
version = "0.3.0"
description = "Hebb Mind — neuroscience-inspired long-term memory framework for AI agents (neurons that fire together, wire together)"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
authors = [
{ name = "afx-team", email = "afx-team@users.noreply.github.com" },
]
keywords = ["agent", "memory", "llm", "ai", "hebb", "hebbian-learning", "hippocampus", "rag", "mcp"]
classifiers = [
"Development Status :: 3 - Alpha",
"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 :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"litellm>=1.40.0",
"pydantic>=2.0.0",
"sqlite-vec>=0.1.0",
"pysqlite3>=0.5.0; sys_platform == 'darwin'",
"aiosqlite>=0.20.0",
"numpy>=1.24.0",
"sentence-transformers>=3.0.0",
"apscheduler>=3.10.0",
"click>=8.0.0",
"rich>=13.0.0",
"httpx>=0.27.0",
"PyJWT>=2.8.0",
"networkx>=3.1",
"mcp>=1.0.0",
# Repairs malformed LLM JSON (doubled braces, truncation, trailing commas).
# Pure-Python, MIT, no mandatory transitive deps.
"json-repair>=0.30.0",
]
[project.optional-dependencies]
pg = [
"asyncpg>=0.29.0",
"pgvector>=0.3.0",
]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=5.0.0",
"ruff>=0.5.0",
"mypy>=1.10.0",
"datasets>=2.0.0",
"pandas>=2.0.0",
"scikit-learn>=1.3.0",
]
[project.scripts]
hebb = "hebb.cli.main:main"
hebb-mcp = "hebb.mcp.server:main"
[project.urls]
Homepage = "https://github.com/afx-team/hebb-mind"
Repository = "https://github.com/afx-team/hebb-mind"
Documentation = "https://github.com/afx-team/hebb-mind#readme"
Issues = "https://github.com/afx-team/hebb-mind/issues"
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
hebb = [
"static/**/*",
]
[tool.ruff]
target-version = "py310"
line-length = 120
src = ["src"]
# Keep `ruff check` scope aligned with the pre-commit hook and CI
# (both run `ruff check src/`). Bare `ruff check` skips these paths;
# passing a path explicitly still works.
extend-exclude = ["eval", "examples", "tests", "scripts", "reports", "repo_pages"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
# __init__.py files re-export names and may keep side-effect imports in a
# fixed order — exempt them from unused-import and import-sort rules.
"__init__.py" = ["F401", "I001"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# repo root on sys.path so eval/ tests (`from eval...`) resolve under importlib
# import-mode (which, unlike prepend, does not inject rootdir into sys.path).
pythonpath = ["."]
asyncio_mode = "auto"
# importlib import-mode + no __init__.py under tests/ lets the mirrored tree
# carry duplicate basenames across layers without "import file mismatch".
addopts = "--import-mode=importlib --strict-markers -ra"
markers = [
"slow: needs the local sentence-transformers model (deselect with '-m \"not slow\"')",
"integration: in-process multi-module test (FastAPI TestClient / CliRunner / real sqlite)",
"e2e: spawns the hebb / hebb-mcp entrypoints (subprocess) or touches OS services",
]
[tool.mypy]
python_version = "3.10"
strict = true
# Relaxations for AI-iterated code. Function bodies are still type-checked
# (check_untyped_defs stays on), but we don't enforce annotations on every
# def / decorator / generic — those rules produce the most noise without
# catching real bugs.
disallow_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_decorators = false
disallow_any_generics = false
warn_return_any = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_decorators = false
# Optional / stubless third-party deps. `asyncpg` and `pgvector` only land via
# the `pg` extras; `pysqlite3` is the macOS-only sqlite3 fallback;
# `apscheduler` and `networkx` ship without `py.typed` markers upstream.
[[tool.mypy.overrides]]
module = [
"asyncpg",
"asyncpg.*",
"pgvector",
"pgvector.*",
"pysqlite3",
"pysqlite3.*",
"apscheduler.*",
"networkx",
"networkx.*",
"sqlite_vec",
]
ignore_missing_imports = true
# numpy >= 2.5 ships PEP 695 `type` statements in its stubs, which mypy rejects
# under our `python_version = "3.10"` target (a stub-syntax/target mismatch, not
# our code). Skip following numpy's stubs rather than dropping the 3.10 target or
# pinning numpy down. numpy is shallowly typed here anyway (disallow_any_generics
# is off), so this loses no meaningful checking.
[[tool.mypy.overrides]]
module = ["numpy", "numpy.*"]
follow_imports = "skip"
follow_imports_for_stubs = true