forked from langchain-ai/deepagents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (85 loc) · 2.31 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (85 loc) · 2.31 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
[project]
name = "deepagents"
version = "0.2.3"
description = "General purpose 'deep agent' with sub-agent spawning, todo list capabilities, and mock file system. Built on LangGraph."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11,<4.0"
dependencies = [
"langchain-anthropic>=1.0.0,<2.0.0",
"langchain>=1.0.2,<2.0.0",
"langchain-core>=1.0.0,<2.0.0",
"wcmatch"
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"build",
"twine",
"langchain-openai",
]
[dependency-groups]
lint = [
"ruff>=0.12.2,<0.13.0",
]
typing = [
"mypy>=1.18.1,<1.19.0",
]
[build-system]
requires = ["setuptools>=73.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
[tool.setuptools.packages.find]
where = ["src"]
include = ["deepagents*"]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.package-data]
"*" = ["py.typed", "*.md"]
[tool.ruff]
line-length = 150
# Exclude any files that shouldn't be linted
exclude = []
[tool.ruff.format]
docstring-code-format = true # Formats code blocks in docstrings
[tool.ruff.lint]
select = [
"ALL" # Enable all rules by default
]
ignore = [
"COM812", # Messes with the formatter
"ISC001", # Messes with the formatter
"PERF203", # Rarely useful
"SLF001", # Private member access
"PLC0415", # Imports should be at the top. Not always desirable
"PLR0913", # Too many arguments in function definition
"PLC0414", # Inconsistent with how type checkers expect to be notified of intentional re-exports
"C901", # Too complex
]
unfixable = ["B028"] # Rules that shouldn't be auto-fixed
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint.pydocstyle]
convention = "google" # Google-style docstrings
ignore-var-parameters = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"D1", # Skip documentation rules in tests
"S101", # Allow asserts in tests
"S311", # Allow pseudo-random generators in tests
# Add more test-specific ignores
]
[tool.mypy]
strict = true
ignore_missing_imports = true
enable_error_code = ["deprecated"]
# Optional: reduce strictness if needed
disallow_any_generics = false
warn_return_any = false
[tool.uv.workspace]
members = [
"libs/deepagents-cli",
]