Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (69 loc) · 2.36 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (69 loc) · 2.36 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "forge-guardrails"
version = "0.8.0"
description = "A reliability layer for self-hosted LLM tool-calling. Guardrails, context management, and backend adapters for multi-step agentic workflows."
requires-python = ">=3.12"
license = "MIT"
authors = [{name = "Antoine Zambelli"}]
readme = "README.md"
keywords = ["llm", "tool-calling", "agents", "guardrails", "local-models", "ollama", "llama-cpp"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.0",
"httpx>=0.27",
]
[project.urls]
Homepage = "https://github.com/antoinezambelli/forge"
Repository = "https://github.com/antoinezambelli/forge"
Documentation = "https://github.com/antoinezambelli/forge/tree/main/docs"
Changelog = "https://github.com/antoinezambelli/forge/blob/main/CHANGELOG.md"
[project.scripts]
forge-proxy = "forge.proxy.__main__:main"
[project.optional-dependencies]
anthropic = ["anthropic>=0.40"]
dev = [
"pytest",
"pytest-cov",
"pytest-asyncio",
"anthropic>=0.40",
"mpmath",
]
[tool.hatch.build.targets.wheel]
packages = ["src/forge"]
[tool.hatch.build.targets.sdist]
# Without scoping, hatchling sweeps the whole tree into the sdist — pulling in
# the LFS eval datasets (~112 MB) and the eval dashboard's node_modules (~97 MB,
# incl. platform .exe/.node binaries). Ship only what builds + tests from source.
exclude = [
"eval_results*.jsonl",
"tests/eval/dashboard/node_modules",
"tests/eval/dashboard/dist",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: marks tests that require a running LLM backend (deselect with '-m \"not integration\"')",
]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["forge"]
[tool.coverage.report]
omit = [
# Integration-only: lifecycle orchestration requiring real backends/threads.
# Covered by eval harness runs, not unit tests.
"src/forge/proxy/proxy.py",
"src/forge/proxy/__main__.py",
]