-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (82 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (82 loc) · 2.62 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "langchain-upstash-box"
description = "Upstash Box sandbox integration for Deep Agents"
license = { text = "MIT" }
readme = "README.md"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
version = "0.0.2"
requires-python = ">=3.11,<4.0"
dependencies = [
"deepagents>=0.6.8,<0.7.0",
"httpx>=0.27.0",
]
[tool.hatch.build.targets.wheel]
packages = ["langchain_upstash_box"]
[project.urls]
Homepage = "https://github.com/upstash/langchain-upstash-box"
Repository = "https://github.com/upstash/langchain-upstash-box"
Documentation = "https://upstash.com/docs/box"
[dependency-groups]
test = [
"pytest>=9.0.3,<10.0.0",
"pytest-cov",
"pytest-socket",
"pytest-xdist",
"pytest-timeout>=2.4.0,<3.0.0",
"pytest-asyncio>=1.4.0",
"ruff>=0.15.16,<1.0.0",
"ty>=0.0.46,<1.0.0",
"langchain-tests>=1.1.9",
]
[tool.ty.environment]
python-version = "3.11"
[tool.ty.rules]
# https://docs.astral.sh/ty/rules/
division-by-zero = "error"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # Messes with the formatter
"ISC001", # Messes with the formatter
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed — too strict for generic wrappers
]
extend-safe-fixes = ["PLR6201"]
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-var-parameters = true # ignore missing documentation for *args and **kwargs parameters
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.coverage.run]
omit = ["tests/*"]
[tool.pytest.ini_options]
addopts = "--strict-markers --strict-config --durations=5"
testpaths = ["tests"]
markers = [
"requires: mark tests as requiring a specific library",
"compile: mark placeholder test used to compile integration tests without running them",
"scheduled: mark tests to run in scheduled testing",
]
asyncio_mode = "auto"
filterwarnings = []
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"D", # docstrings not required in tests
"S101", # asserts are expected in tests
"SLF001", # tests may poke at private members
"PLR2004", # magic values are fine in test assertions
"S108", # hardcoded /tmp paths are fine in tests
]