forked from vstorm-co/pydantic-deepagents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
210 lines (191 loc) · 5.42 KB
/
pyproject.toml
File metadata and controls
210 lines (191 loc) · 5.42 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[project]
name = "pydantic-deep"
version = "0.2.19"
description = "Deep Agent framework built on Pydantic-ai with planning, filesystem, and subagent capabilities"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Pydantic Deep Contributors" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"pydantic-ai-slim>=0.1.0",
"pydantic-ai-todo>=0.1.9",
"pydantic-ai-backend[console]>=0.1.11",
"summarization-pydantic-ai[hybrid]>=0.0.4",
"subagents-pydantic-ai>=0.0.8",
"pydantic-ai-middleware>=0.2.1",
"pydantic>=2.0",
"chardet>=5.0.0",
]
[project.optional-dependencies]
# Docker sandbox support
sandbox = ["pydantic-ai-backend[docker]>=0.1.6"]
# YAML support for skills (pyyaml-based frontmatter parsing)
yaml = ["pyyaml>=6.0"]
# CLI tools (for interactive chat examples)
cli = [
"typer>=0.12.0",
"rich>=13.0.0",
"prompt-toolkit>=3.0.0",
"tomli>=2.0; python_version < '3.11'",
"python-dotenv>=1.0.0",
]
# Web server support (for full_app example)
web = [
"fastapi>=0.125.0",
"uvicorn>=0.38.0",
"python-multipart>=0.0.21",
]
# Logfire tracing support
logfire = ["logfire>=4.0"]
# Web tools (search, fetch, HTTP requests)
web-tools = [
"requests>=2.28.0",
"markdownify>=0.13.0",
"tavily-python>=0.5.0",
]
# SWE-bench evaluation support
swebench = ["datasets>=2.0", "swebench>=2.0"]
# All optional dependencies
all = [
"pydantic-deep[sandbox,cli,web,web-tools,yaml,logfire]",
]
[project.urls]
Homepage = "https://github.com/vstorm-co/pydantic-deepagents"
Documentation = "https://github.com/vstorm-co/pydantic-deepagents"
Repository = "https://github.com/vstorm-co/pydantic-deepagents"
Issues = "https://github.com/vstorm-co/pydantic-deepagents/issues"
[project.scripts]
pydantic-deep = "cli.main:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["pydantic_deep", "cli", "apps"]
# Dependency groups for development
[dependency-groups]
dev = [
"pydantic-deep[all]",
"pytest>=9.0.0",
"pytest-asyncio>=0.23.0",
"coverage>=7.0.0",
"build>=1.3.0",
"twine>=6.2.0",
"pre-commit>=4.5.1",
]
lint = [
"ruff>=0.8.0",
"pyright>=1.1.0",
"mypy>=1.0.0",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
"mkdocstrings>=0.26.0",
"mkdocstrings-python>=1.12.0",
"mkdocs-llmstxt>=0.2.0",
]
# Ruff configuration
[tool.ruff]
line-length = 100
target-version = "py310"
exclude = ["notes", "playground"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"Q", # flake8-quotes
"RUF100", # unused noqa
"C90", # mccabe complexity
]
[tool.ruff.lint.per-file-ignores]
# Prompt strings contain long lines that shouldn't be wrapped
"apps/deepresearch/src/deepresearch/prompts.py" = ["E501"]
"apps/deepresearch/src/deepresearch/agent.py" = ["E501"]
"examples/full_app/app.py" = ["E501"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.format]
quote-style = "double"
# Pytest configuration
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
# Coverage configuration
[tool.coverage.run]
branch = true
source = ["pydantic_deep"]
data_file = ".coverage/.coverage"
[tool.coverage.report]
fail_under = 100
skip_covered = true
show_missing = true
precision = 2
exclude_also = [
"# pragma: no branch",
]
exclude_lines = [
"pragma: no cover",
"pragma: lax no cover",
"if TYPE_CHECKING:",
"@overload",
"@abstractmethod",
"raise NotImplementedError",
"if __name__ == '__main__':",
"except ImportError:",
"pass",
"\\.\\.\\.",
]
[tool.coverage.html]
directory = "htmlcov"
# Pyright configuration
[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "basic" # Use basic mode for pragmatic type checking
include = ["pydantic_deep"]
exclude = ["**/__pycache__", ".venv*", "site", "playground", "tests", "examples"]
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownArgumentType = false
reportUnknownVariableType = false
reportUnknownParameterType = false
reportUnusedFunction = false # Decorators register functions
reportPrivateUsage = false # Internal usage is intentional
reportOptionalMemberAccess = false # Docker SDK typing issues
reportCallIssue = false # TypedDict constructor calls
reportAssignmentType = false # Dynamic dict building
reportTypedDictNotRequiredAccess = false # NotRequired keys with get()
# MyPy configuration
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disable_error_code = ["arg-type", "list-item", "abstract"]
# Codespell configuration
[tool.codespell]
skip = ".git,.venv*,uv.lock,site,htmlcov,.coverage"