Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (86 loc) · 2.57 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (86 loc) · 2.57 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 = "hotdata-langchain"
version = "0.17.0"
description = "LangChain tools for Hotdata runtime"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
dependencies = [
# 0.14.1 is the first framework release that accepts hotdata 0.10+ (earlier ones
# cap it below 0.10). Retryable `append` loads, which the tool exposes, date from 0.13.0.
"hotdata-framework>=0.14.1",
"hotdata>=0.10.0",
"langchain-core>=1.0",
"numpy>=1.26",
"pyarrow>=15",
]
[project.optional-dependencies]
# The runtime needs only langchain-core; `create_agent` lives in `langchain`.
agents = ["langchain>=1.0"]
[dependency-groups]
dev = [
"pytest>=8.0",
"ruff>=0.5",
"mypy>=1.5",
"langchain-tests>=1.0",
# The tools are wrapped for a graph, so the tests need the graph's control-flow
# exceptions. Without it errors.py silently takes its no-langgraph branch and the
# interrupt guard goes untested.
"langgraph>=1.0",
]
demo = [
"langchain>=1.0",
"langchain-openai>=1.0",
]
[tool.uv]
default-groups = ["dev"]
[tool.hatch.build.targets.wheel]
packages = ["hotdata_langchain"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "UP", "N", "C4", "DTZ", "T20", "RET", "SIM", "RUF"]
[tool.ruff.lint.per-file-ignores]
"examples/**/*.py" = ["T201"]
"scripts/**/*.py" = ["T201", "E501"]
"demo/**/*.py" = ["T201"]
[tool.mypy]
python_version = "3.10"
strict = true
files = ["hotdata_langchain", "tests"]
namespace_packages = true
explicit_package_bases = true
warn_unused_configs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
implicit_reexport = false
implicit_optional = false
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
strict_equality = true
strict_bytes = true
extra_checks = true
# pyarrow resolves to Any under mypy: its __init__.pyi re-exports from an untyped C
# extension, so every pa.* annotation trips disallow_any_unimported and every
# pq.* call trips disallow_untyped_calls. Scoped to the two modules that touch it.
[[tool.mypy.overrides]]
module = ["hotdata_langchain.vectorstore", "tests.fake_hotdata"]
disallow_any_unimported = false
disallow_untyped_calls = false