-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
165 lines (145 loc) · 3.75 KB
/
pyproject.toml
File metadata and controls
165 lines (145 loc) · 3.75 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "openchronicle-core"
version = "2.0.0.dev0"
description = "Durable context engine for LLM interactions — persistent memory, explainable routing, and auditable decision trails."
authors = [{name = "OpenChronicle"}]
maintainers = [{name = "CarlDog", email = "carldog@users.noreply.github.com"}]
license = {text = "AGPL-3.0-only"}
readme = "README.md"
requires-python = ">=3.11"
keywords = ["llm", "ai", "memory", "context", "mcp", "chatbot", "orchestration"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.110.0",
"uvicorn[standard]>=0.27.0",
]
[project.urls]
Homepage = "https://github.com/OpenChronicle/core"
Repository = "https://github.com/OpenChronicle/core"
Issues = "https://github.com/OpenChronicle/core/issues"
Documentation = "https://github.com/OpenChronicle/core/tree/main/docs"
[project.optional-dependencies]
openai = [
"openai>=1.0.0",
]
ollama = [
"httpx>=0.25.0",
]
anthropic = [
"anthropic>=0.39.0",
]
groq = [
"groq>=0.4.0",
]
gemini = [
"google-genai>=1.0.0",
]
discord = [
"discord.py>=2.0",
]
mcp = [
"mcp>=1.0.0",
]
dev = [
"pytest>=7",
"pytest-asyncio>=0.23",
"mypy>=1.8",
"ruff>=0.1.0",
"openai>=1.0.0",
"httpx>=0.25.0",
"anthropic>=0.39.0",
"groq>=0.4.0",
"google-genai>=1.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
pythonpath = ["src"]
markers = [
"integration: mark test as an integration test that requires env vars to run",
]
[project.scripts]
oc = "openchronicle.interfaces.cli.main:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
openchronicle = ["**/*.sql"]
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"SIM", # flake8-simplify
"RET", # flake8-return
# "TCH", # flake8-type-checking (disabled for cleaner code)
]
ignore = [
"E501", # line too long (handled by formatter)
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"tests/**/*.py" = ["B", "SIM"] # Less strict for tests
[tool.ruff.lint.isort]
known-first-party = ["openchronicle"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_unimported = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
check_untyped_defs = true
strict_equality = true
ignore_missing_imports = false
[[tool.mypy.overrides]]
module = "openai.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "httpx.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.helpers"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "anthropic.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "groq.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "google.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "discord.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mcp.*"
ignore_missing_imports = true