Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (154 loc) · 5.13 KB
/
Copy pathpyproject.toml
File metadata and controls
168 lines (154 loc) · 5.13 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
165
166
167
168
# Workspace root for the GraphHarbor monorepo (https://github.com/ljxpython/graphharbor).
# Publishable packages live under libs/.
[project]
name = "graphharbor-workspace"
version = "0.0.0"
description = "Workspace root (not published). See https://github.com/ljxpython/graphharbor — GraphHarbor CLI and PostgreSQL runtime."
requires-python = ">=3.11"
dependencies = []
[project.urls]
Homepage = "https://github.com/ljxpython/graphharbor"
Repository = "https://github.com/ljxpython/graphharbor"
Issues = "https://github.com/ljxpython/graphharbor/issues"
[dependency-groups]
acceptance = [
"langchain==1.3.17",
"langchain-openai==1.6.0",
"deepagents==0.7.9",
"langchain-mcp-adapters>=0.2,<0.3",
"mcp>=1.23,<2",
]
dev = [
# Workspace packages under test / for local CLI.
"graphharbor-runtime",
"graphharbor",
# Internal comparison profile only; GraphHarbor production has no langgraph-api dependency.
"langgraph-api==0.13.0",
# Test + lint tooling (not shipped with the libs).
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-timeout>=2.4.0",
"pytest-rerunfailures>=16.4",
"httpx>=0.27",
"asgi-lifespan>=2.1",
"ruff>=0.16.0",
"mypy>=1.14",
"pre-commit>=4.0",
]
[tool.uv.workspace]
members = ["libs/*"]
[tool.uv.sources]
graphharbor-runtime = { workspace = true }
graphharbor = { workspace = true }
# Keep the whole resolver on the frozen upstream set (incl. transitive pulls).
[tool.uv]
constraint-dependencies = [
"langgraph-api==0.13.0",
"langgraph-runtime-inmem==0.33.0",
"langgraph-sdk==0.4.3",
"langgraph==1.2.11",
"langgraph-checkpoint==4.2.0",
"langgraph-checkpoint-postgres==3.1.2",
]
package = false
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = [
"libs/langgraph-runtime-pg/tests",
"libs/langhost/tests",
]
markers = [
"e2e: live-server E2E against LANGGRAPH_INTEGRATION_URL",
]
# ── Ruff (lint + format) ───────────────────────────────────────────────────
[tool.ruff]
target-version = "py311"
line-length = 100
src = [
"libs/langgraph-runtime-pg/src",
"libs/langgraph-runtime-pg/tests",
"libs/langhost/src",
"libs/langhost/tests",
]
extend-exclude = [
".tests",
".cache",
"libs/langgraph-runtime-pg/src/langgraph_runtime_pg/migrations/versions",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # ruff-specific
"ASYNC", # flake8-async
"T20", # flake8-print (no debug prints)
"PERF", # perflint
"PTH", # flake8-use-pathlib
]
ignore = [
"E501", # line length handled by formatter
"B008", # function calls in defaults (FastAPI / CLI patterns)
"SIM105", # try/except/pass is clearer in teardown / best-effort paths
"SIM108", # ternary vs if/else — readability preference
"ASYNC109", # timeout kwargs are intentional Redis/queue wait APIs
"PERF401", # list.append loops preferred for clarity here
"RUF012", # mutable class attrs (SQLAlchemy / pydantic patterns)
"RUF001", # ambiguous unicode character in string
"RUF002", # ambiguous unicode character in docstring
"RUF003", # ambiguous unicode character in comment
]
[tool.ruff.lint.per-file-ignores]
"libs/langgraph-runtime-pg/tests/**" = ["T20", "B011", "PTH"]
"libs/langgraph-runtime-pg/src/langgraph_runtime_pg/migrate.py" = ["T20"]
"libs/langgraph-runtime-pg/src/langgraph_runtime_pg/migrations/**" = ["INP001", "T20"]
"libs/langhost/src/langhost/**" = ["T20"]
[tool.ruff.lint.isort]
known-first-party = ["langgraph_runtime_pg", "langhost"]
combine-as-imports = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
# ── mypy ───────────────────────────────────────────────────────────────────
[tool.mypy]
python_version = "3.11"
mypy_path = "libs/langgraph-runtime-pg/src:libs/langhost/src"
packages = ["langgraph_runtime_pg", "langhost"]
explicit_package_bases = true
pretty = true
show_error_codes = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
strict_equality = true
# Incremental strictness: annotated defs are checked; untyped bodies follow later.
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
warn_return_any = false
exclude = [
"(?x)(^libs/langgraph-runtime-pg/src/langgraph_runtime_pg/migrations/versions/)",
]
[[tool.mypy.overrides]]
module = [
"langgraph.*",
"langgraph_api.*",
"langgraph_sdk.*",
"langgraph_cli.*",
"deepagents.*",
"croniter",
"orjson",
"psycopg_pool",
"psycopg_pool.*",
]
ignore_missing_imports = true