-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (151 loc) · 4.64 KB
/
pyproject.toml
File metadata and controls
164 lines (151 loc) · 4.64 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
[project]
name = "ai"
dynamic = ["version"]
description = "AI Agent Framework for Python"
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = "README.md"
authors = [
{ name = "Andrey Buzin", email = "andrey.buzin@vercel.com" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.12"
dependencies = [
"httpx>=0.28.1",
"modelsdotdev==0.*",
"pydantic>=2.12.5",
"typing-extensions>=4.15.0",
]
[project.optional-dependencies]
anthropic = ["anthropic>=0.83.0"]
mcp = ["mcp>=1.18.0"]
openai = ["openai>=2.14.0"]
[build-system]
requires = ["hatchling", "uv-dynamic-versioning>=0.7.0"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
bump = true
[dependency-groups]
dev = [
"anthropic>=0.83.0",
"mcp>=1.18.0",
"python-dotenv>=1.2.1",
"pytest>=8.0",
"pytest-asyncio>=0.24",
"rich>=14.2.0",
"mypy~=2.1.0",
"openai>=2.14.0",
"ruff~=0.8.0",
"async-solipsism>=0.9",
"ty~=0.0.37",
]
examples = [
"fastapi>=0.136.1",
"temporalio>=1.27.2",
"textual>=8.2.6",
"websockets>=16.0",
]
[tool.uv]
default-groups = ["dev", "examples"]
exclude-newer = "2 days"
[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["pydantic.mypy"]
files = ["src", "tests", "examples"]
exclude = ["examples/fastapi-vite/backend/main.py"]
[tool.ty.environment]
python-version = "3.12"
root = ["./src", "./"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
line-length = 80
indent-width = 4
target-version = "py312"
src = ["src"]
exclude = [
".github",
".git",
"build",
"dist",
".eggs",
]
[tool.ruff.lint]
preview = true
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # error
"ERA", # flake8-eradicate
"F", # pyflakes
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"I", # isort
"N", # pep8-naming
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLE", # pylint-error
"PLW", # pylint-warning
"PLC0415", # pylint-convention: import not at top of file
"PLC2701", # pylint-convention: private import
"RUF", # ruff specific
"T20", # flake8-print
"TC", # flake8-type-checking
"UP", # pyupgrade
"W", # warning
]
extend-ignore = [
"D100", # public API docs are not yet enforced everywhere
"D101", # public API docs are not yet enforced everywhere
"D102", # public API docs are not yet enforced everywhere
"D103", # public API docs are not yet enforced everywhere
"D104", # public API docs are not yet enforced everywhere
"D105", # public API docs are not yet enforced everywhere
"D107", # public API docs are not yet enforced everywhere
"D417", # public API docs are not yet enforced everywhere
"D203", # incorrect-blank-line-before-class
"D213", # multi-line-summary-second-line
"F541", # f-string-missing-placeholders
"PLW1514", # unspecified-encoding (UTF-8 is Python 3 default)
"PLW2901", # redefined-loop-name (intentional pattern for line processing)
"RUF029", # async generators/protocol hooks may not need an await
]
[tool.ruff.lint.per-file-ignores]
"examples/**/*.py" = [
"D", # examples are executable samples, not public API
"PLW1510", # example subprocess helpers intentionally handle failures manually
"RUF029", # example async tools often demonstrate async entry points
"T201", # examples are command-line scripts and demos
]
"tests/**/*.py" = [
"D", # docstrings not required in tests
"FBT", # tests intentionally cover boolean-typed tool parameters
"PLC0415", # local imports keep test-only dependencies scoped
"PLC2701", # allow private imports in tests
"RUF029", # async stubs/generators exercise async code paths
"TC", # test annotations often double as runtime documentation
]