Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (53 loc) · 1.76 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (53 loc) · 1.76 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "agent-experiment"
version = "0.1.0"
description = "LangGraph multi-agent handoff patterns and examples"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"langchain-core>=0.3.68",
"langchain-openai>=0.3.27",
"langgraph>=0.5.1",
"loguru>=0.7.3",
"pydantic-settings>=2.10.1",
"python-dotenv>=1.1.1",
]
[project.scripts]
router-command = "agent_experiment.examples.router_handoff_command:main"
router-tools = "agent_experiment.examples.router_handoff_tools:main"
agent-handoff = "agent_experiment.examples.agent_handoff_tools:main"
visualize-graphs = "agent_experiment.utils.visualize_graphs:main"
[tool.ruff]
line-length = 110
target-version = "py311" # the python version to target, useful when considering code upgrades, defaults to "py310"
# Allow imports relative to the "src" directory
src = ["src"]
show-fixes = true
unsafe-fixes = true
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any)
"COM812",
"D100", # Missing docstring in public class
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"ERA001", # Found commented-out code
"FIX002", # Line contains TODO, consider resolving the issue
"ISC001",
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**/*.py" = ["S101"] # Ignore assertions in test files
[tool.ruff.lint.pycodestyle]
max-doc-length = 110
max-line-length = 110
[tool.ruff.lint.pydocstyle]
convention = "google"