-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (56 loc) · 2.01 KB
/
Copy pathpyproject.toml
File metadata and controls
68 lines (56 loc) · 2.01 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
[project]
name = "agentgraph"
version = "0.1.0"
description = "A teaching coding agent that reasons before it acts: ReAct on LangGraph"
requires-python = ">=3.12"
dependencies = [
"langgraph>=1.0",
"langchain-core>=1.0",
"langchain-ollama>=1.0",
]
[project.optional-dependencies]
eval = ["datasets>=2.20.0"]
# Only agent/prebuilt.py needs this: the side-by-side that builds the same agent out of
# `langchain.agents.create_agent` and its middleware. Optional so the agent you are meant to
# read has the smaller dependency tree of the two.
prebuilt = ["langchain>=1.0"]
dev = ["ruff>=0.6", "black>=24.8", "mypy>=1.11", "coverage>=7.6"]
[project.scripts]
agentgraph = "agentgraph.cli:cli_entry"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/agentgraph"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "ARG"]
[tool.ruff.lint.per-file-ignores]
# ARG (unused arguments) catches dead parameters, and is worth having on in src/. The three
# exceptions are all the same case: a stand-in has to match the signature of the thing it
# replaces, whether or not it reads every argument. `llm/fake.py` is a real BaseChatModel that
# ignores `tools` and `stop` on purpose, and `agent/trace.py` is a real BaseCallbackHandler
# whose hook signatures are fixed by LangChain — it needs `run_id`, not `serialized`.
"src/agentgraph/llm/fake.py" = ["ARG"]
"src/agentgraph/agent/trace.py" = ["ARG"]
"src/agentgraph/agent/prebuilt.py" = ["ARG"]
"tests/*" = ["ARG"]
"exercises/*" = ["ARG"]
[tool.mypy]
files = ["src/agentgraph"]
python_version = "3.12"
strict = true
[[tool.mypy.overrides]]
module = "datasets.*"
ignore_missing_imports = true
# Both are optional extras, so a checkout with only the base dependencies must still type-check.
[[tool.mypy.overrides]]
module = "langchain.*"
ignore_missing_imports = true
[tool.black]
line-length = 100
target-version = ["py312"]
[tool.coverage.run]
source = ["src/agentgraph"]