-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (97 loc) · 2.74 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (97 loc) · 2.74 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
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lerim"
version = "0.4.0"
description = "Open-source context compiler: compiles completed agent traces into cited, reusable context."
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
dependencies = [
"pydantic==2.12.5",
"eval_type_backport==0.3.1; python_version < '3.13'",
"python-dotenv==1.2.2",
"PyYAML==6.0.3",
"loguru==0.7.3",
"python-frontmatter==1.1.0",
"openrouter==0.7.11",
"mlflow==3.11.1",
"rich==14.3.3",
"numpy>=2.0",
"onnxruntime>=1.22.0",
"huggingface-hub>=0.35.0",
"tokenizers>=0.21.0",
"sqlite-vec>=0.1.6",
"mcp==1.26.0",
"tomlkit>=0.13.2",
"json5>=0.13.0",
"dspy==3.3.0b1",
]
[project.urls]
Homepage = "https://github.com/nablo-io/lerim"
Documentation = "https://docs.nablo.io"
Repository = "https://github.com/nablo-io/lerim"
Changelog = "https://github.com/nablo-io/lerim/blob/main/CHANGELOG.md"
Issues = "https://github.com/nablo-io/lerim/issues"
[project.optional-dependencies]
mlx = [
"vllm-mlx>=0.2.6",
]
test = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-xdist>=3.5",
"pytest-timeout>=2.4",
# Validates written traces against the trajectory-v1 schema the pinned npm
# package ships. Test-only on purpose: src/ restates the schema instead of
# depending on a package Lerim does not declare at runtime.
"jsonschema>=4.20",
]
lint = [
"ruff>=0.15.0",
"vulture>=2.14",
]
docs = [
"mkdocs-material>=9.6",
"mkdocstrings[python]>=0.27",
]
[project.scripts]
lerim = "lerim.server.cli:main"
lerim-mcp = "lerim.mcp_server:run_mcp_server"
[tool.setuptools.packages.find]
where = ["src"]
include = ["lerim*"]
[tool.setuptools.package-data]
lerim = [
"config/default.toml",
"profiles/*.yaml",
"skills/*.md",
"server/lerim-seccomp.json",
]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests/unit", "tests/smoke", "tests/integration", "tests/e2e"]
markers = [
"integration: Tests that exercise runtime, database, API, or provider boundaries and are gated by LERIM_INTEGRATION",
"e2e: End-to-end tests that exercise full flows",
"smoke: Quick LLM sanity checks (requires ollama)",
"agent: LLM-backed agent flow tests",
"llm: Tests that make real LLM/provider calls",
"openrouter: OpenRouter provider tests",
"openai: OpenAI provider tests",
"zai: ZAI provider tests",
"kimi: Kimi provider tests",
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
extend-select = ["B006"]
ignore = ["E501"]
[tool.vulture]
paths = ["src/lerim/", "vulture_whitelist.py"]
min_confidence = 60
[dependency-groups]
dev = [
"jupyterlab>=4.5.5",
"matplotlib>=3.10.8",
]