-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
132 lines (114 loc) · 3.1 KB
/
pyproject.toml
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
[project]
name = "thirdweb-ai"
dynamic = ["version", "dependencies"]
description = "thirdweb AI"
authors = [{ name = "thirdweb", email = "[email protected]" }]
requires-python = ">=3.10,<4.0"
readme = "README.md"
license = "Apache-2.0"
keywords = [
"thirdweb",
"sdk",
"crypto",
"agent",
"ai",
"web3",
"onchain",
]
[project.optional-dependencies]
all = [
"langchain-core>=0.3.0",
"goat-sdk>=0.1.0",
"openai-agents>=0.0.1",
"autogen-core>=0.4.0",
"llama-index-core>=0.12.0",
"coinbase-agentkit>=0.1.0,<0.2",
"mcp>=1.3.0",
"smolagents>=1.10.0",
"pydantic-ai>=0.0.39",
]
langchain = ["langchain-core>=0.3.0"]
goat = ["goat-sdk>=0.1.0"]
openai = ["openai-agents>=0.0.1"]
autogen = ["autogen-core>=0.4.0"]
llama-index = ["llama-index-core>=0.12.0"]
agentkit = ["coinbase-agentkit>=0.1.0,<0.2"]
mcp = ["mcp>=1.3.0"]
smolagents = ["smolagents>=1.10.0"]
pydantic-ai = ["pydantic-ai>=0.0.39"]
[dependency-groups]
dev = [
"ruff>=0.9.10,<0.10",
"pyright>=1.1.396,<2",
"pytest>=7.4.0,<8",
"pytest-asyncio>=0.23.5,<0.24",
"pytest-mock>=3.12.0,<4",
"pytest-cov>=4.1.0,<5",
"ipython>=8.34.0",
]
[tool.hatch.build.targets.sdist]
include = ["src/thirdweb_ai"]
[tool.hatch.build.targets.wheel]
include = ["src/thirdweb_ai"]
[tool.hatch.build.targets.wheel.sources]
"src/thirdweb_ai" = "thirdweb_ai"
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build.hooks.version]
path = "src/thirdweb_ai/_version.py"
template = '''
version = "{version}"
'''
[tool.hatch.metadata.hooks.uv-dynamic-versioning]
dependencies = [
"thirdweb-mcp=={{ version }}",
"pydantic>=2.10.6,<3",
"jsonref>=1.1.0,<2",
"httpx>=0.28.1,<0.29",
"aiohttp>=3.11.14",
"web3>=7.9.0",
]
[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"
[tool.pyright]
include = ["src"]
typeCheckingMode = "strict"
reportUnknownVariableType = "none"
reportUnknownLambdaType = "none"
reportUnknownArgumentType = "none"
reportMissingTypeStubs = "none"
reportAbstractUsage = "none"
reportUnknownMemberType = "none"
executionEnvironments = [
{ root = "src/thirdweb_ai/adapters", reportMissingImports = "none", reportUnknownParameterType = "none", reportAttributeAccessIssue = "none", reportUntypedBaseClass = "none"},
{ root = "src" }
]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.ruff.lint]
extend-select = [
"E", "F", "W", "I", "N", "UP", "A", "B", "ASYNC", "C4", "COM", "SIM",
"RET", "YTT", "PTH", "INT", "TID", "SLOT", "SLF", "RSE", "Q", "PT", "PYI", "T20",
"PIE", "LOG", "ICN", "ISC", "FA", "T10", "DTZ", "EXE", "RUF", "C", "FURB", "PERF",
"FLY", "PLC", "PLE", "PLW", "PGH",
]
ignore = [
"SIM103", "E501", "UP017", "ISC001", "COM812", "PLC0105", "C901"
]
[tool.ruff.lint.isort]
known-first-party = ["thirdweb_ai"]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-v --cov=thirdweb_ai --cov-report=term-missing"
testpaths = [
"tests",
]