-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (145 loc) · 4.52 KB
/
pyproject.toml
File metadata and controls
156 lines (145 loc) · 4.52 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
[tool.poetry]
name = "langgraph-checkpoint-redis"
version = "0.4.1"
description = "Redis implementation of the LangGraph agent checkpoint saver and store."
authors = ["Brian Sam-Bodden <bsb@redis.com>", "Redis Inc. <applied.ai@redis.com>"]
license = "MIT"
readme = "README.md"
repository = "https://www.github.com/redis-developer/langgraph-redis"
keywords = ["ai", "redis", "redis-client", "vector-database", "agents", "langgraph", "langchain"]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]
packages = [{ include = "langgraph" }]
[tool.poetry.dependencies]
python = ">=3.10,<3.15"
langgraph-checkpoint = ">=4.0.0,<5.0.0"
redisvl = ">=0.15.0,<1.0.0"
redis = ">=5.2.1"
orjson = "^3.9.0"
tomli = { version = "^2.0.1", python = "<3.11" }
[tool.poetry.group.dev.dependencies]
langgraph = ">=1.0.10"
black = ">=26.3.1,<27"
codespell = "^2.4.1"
pytest = ">=9.0.3,<10"
anyio = "^4.10.0"
pytest-asyncio = "^1.1.0"
pytest-xdist = { extras = ["psutil"], version = "^3.8.0" }
pytest-mock = "^3.14.1"
mypy = ">=1.11.0,<2"
aioconsole = "^0.8.1"
langchain-openai = "^0.3.30"
testcontainers = "^4.12.0"
isort = "^6.0.1"
cryptography = ">=46.0.7"
coverage = "^7.10.3"
pytest-cov = "^6.2.1"
vulture = "^2.14"
pympler = "^1.1"
aiofiles = "^24.1.0"
langmem = "^0.0.30"
sentence-transformers = "^5.2.0"
langchain-core = ">=1.2.28,<2"
pygments = ">=2.20.0,<3"
requests = ">=2.33.1,<3"
[tool.pytest.ini_options]
# --strict-markers will raise errors on unknown marks.
# https://docs.pytest.org/en/7.1.x/how-to/mark.html#raising-errors-on-unknown-marks
#
# https://docs.pytest.org/en/7.1.x/reference/reference.html
# --strict-config any warnings encountered while parsing the `pytest`
# section of the configuration file raise errors.
addopts = "--strict-markers --strict-config --durations=5 -vv"
asyncio_mode = "auto"
filterwarnings = [
# Ignore testcontainers internal deprecation warnings (they haven't fixed their own code yet)
"ignore::DeprecationWarning:testcontainers.core.waiting_utils",
"ignore::DeprecationWarning:testcontainers.redis",
# Ignore trustcall library's deprecated import (used by langmem)
"ignore:Importing Send from langgraph.constants is deprecated.*:DeprecationWarning:trustcall._base",
# Ignore PyTorch internal deprecation triggered by sentence-transformers during model loading
"ignore::DeprecationWarning:torch.jit._script",
# Ignore redisvl internal deprecation warning for get_async_redis_connection
"ignore:get_async_redis_connection will become async:DeprecationWarning:redisvl.redis.connection",
]
[tool.poetry.scripts]
format = "scripts:format"
check-format = "scripts:check_format"
sort-imports = "scripts:sort_imports"
check-sort-imports = "scripts:check_sort_imports"
check-lint = "scripts:check_lint"
check-mypy = "scripts:check_mypy"
test = "scripts:test"
test-verbose = "scripts:test_verbose"
test-coverage = "scripts:test_coverage"
coverage-report = "scripts:coverage_report"
coverage-html = "scripts:coverage_html"
find-dead-code = "scripts:find_dead_code"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
exclude = '''
(
| \.egg
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| _build
| build
| dist
| setup.py
)
'''
[tool.mypy]
# https://mypy.readthedocs.io/en/stable/config_file.html
disallow_untyped_defs = true
explicit_package_bases = true
warn_no_return = false
warn_unused_ignores = false
warn_redundant_casts = true
allow_redefinition = true
ignore_missing_imports = true
disable_error_code = "typeddict-item, return-value, union-attr, operator, assignment"
[tool.coverage.run]
source = ["langgraph"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/scripts.py",
"*/examples/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod"
]
show_missing = true
skip_covered = false
skip_empty = true
[tool.coverage.html]
directory = "htmlcov"
[tool.vulture]
paths = ["langgraph"]
exclude = ["*test*", "*example*"]
min_confidence = 80
sort_by_size = true