Skip to content

Commit 692220d

Browse files
authored
Merge branch 'master' into improve-runnablelambda-types
2 parents 9338ec4 + 721bf15 commit 692220d

File tree

21 files changed

+1589
-1002
lines changed

21 files changed

+1589
-1002
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2727
// "forwardPorts": [],
2828
// Run commands after the container is created
29-
"postCreateCommand": "uv sync && echo 'LangChain (Python) dev environment ready!'",
29+
"postCreateCommand": "cd libs/langchain_v1 && uv sync && echo 'LangChain (Python) dev environment ready!'",
3030
// Configure tool-specific properties.
3131
"customizations": {
3232
"vscode": {
@@ -42,7 +42,7 @@
4242
"GitHub.copilot-chat"
4343
],
4444
"settings": {
45-
"python.defaultInterpreterPath": ".venv/bin/python",
45+
"python.defaultInterpreterPath": "libs/langchain_v1/.venv/bin/python",
4646
"python.formatting.provider": "none",
4747
"[python]": {
4848
"editor.formatOnSave": true,

.dockerignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Git
2+
.git
3+
.github
4+
5+
# Python
6+
__pycache__
7+
*.pyc
8+
*.pyo
9+
.venv
10+
.mypy_cache
11+
.pytest_cache
12+
.ruff_cache
13+
*.egg-info
14+
.tox
15+
16+
# IDE
17+
.idea
18+
.vscode
19+
20+
# Worktree
21+
worktree
22+
23+
# Test artifacts
24+
.coverage
25+
htmlcov
26+
coverage.xml
27+
28+
# Build artifacts
29+
dist
30+
build
31+
32+
# Misc
33+
*.log
34+
.DS_Store

libs/cli/pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ dev = [
3838
"pytest-watcher>=0.3.4,<1.0.0"
3939
]
4040
lint = [
41-
"ruff>=0.13.1,<0.14",
42-
"mypy>=1.18.1,<1.19"
41+
"ruff>=0.14.10,<0.15.0"
4342
]
4443
test = [
4544
"langchain-core",
4645
"langchain-classic"
4746
]
48-
typing = ["langchain-classic"]
47+
typing = [
48+
"mypy>=1.19.1,<1.20",
49+
"langchain-classic"
50+
]
4951
test_integration = []
5052

5153
[tool.uv.sources]

libs/cli/uv.lock

Lines changed: 138 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/core/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Slack = "https://www.langchain.com/join-community"
3232
Reddit = "https://www.reddit.com/r/LangChain/"
3333

3434
[dependency-groups]
35-
lint = ["ruff>=0.13.1,<0.14.0"]
35+
lint = ["ruff>=0.14.10,<0.15.0"]
3636
typing = [
37-
"mypy>=1.18.1,<1.19.0",
37+
"mypy>=1.19.1,<1.20.0",
3838
"types-pyyaml>=6.0.12.2,<7.0.0.0",
3939
"types-requests>=2.28.11.5,<3.0.0.0",
4040
"langchain-text-splitters",

libs/core/tests/benchmarks/test_async_callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def test_async_callbacks_in_sync(benchmark: BenchmarkFixture) -> None:
4949
infinite_cycle = cycle([AIMessage(content=" ".join(["hello", "goodbye"] * 5))])
5050
model = GenericFakeChatModel(messages=infinite_cycle)
5151

52-
@benchmark # type: ignore[misc]
52+
@benchmark # type: ignore[untyped-decorator]
5353
def sync_callbacks() -> None:
5454
for _ in range(5):
5555
for _ in model.stream("meow", {"callbacks": [MyCustomAsyncHandler()]}):

libs/core/tests/benchmarks/test_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
)
5050
@pytest.mark.benchmark
5151
def test_import_time(benchmark: BenchmarkFixture, import_path: str) -> None:
52-
@benchmark # type: ignore[misc]
52+
@benchmark # type: ignore[untyped-decorator]
5353
def import_in_subprocess() -> None:
5454
subprocess.run([sys.executable, "-c", import_path], check=True)

libs/core/uv.lock

Lines changed: 132 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/langchain/dev.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ COPY . .
2828
RUN mkdir -p $UV_CACHE_DIR && chmod 755 $UV_CACHE_DIR
2929

3030
# Install dependencies using uv (let uv handle the venv creation)
31+
WORKDIR /workspaces/langchain/libs/langchain_v1
3132
RUN uv sync --dev
33+
WORKDIR /workspaces/langchain
3234

3335
# Create a non-root user and set up proper permissions
3436
RUN useradd -m -s /bin/bash -u 1000 vscode && \
@@ -38,4 +40,4 @@ USER vscode
3840

3941
# Set shell for interactive use
4042
SHELL ["/bin/bash", "-c"]
41-
CMD ["/bin/bash"]
43+
CMD ["/bin/bash"]

libs/langchain/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ test_integration = [
8888
"langchain-text-splitters",
8989
]
9090
lint = [
91-
"ruff>=0.13.1,<0.14.0",
91+
"ruff>=0.14.10,<0.15.0",
9292
"cffi<1.17.1; python_version < \"3.10\"",
9393
"cffi; python_version >= \"3.10\"",
9494
]
9595
typing = [
96-
"mypy>=1.18.2,<1.19.0",
96+
"mypy>=1.19.1,<1.20.0",
9797
"mypy-protobuf>=3.0.0,<4.0.0",
9898
"types-pyyaml>=6.0.12.2,<7.0.0.0",
9999
"types-requests>=2.28.11.5,<3.0.0.0",

0 commit comments

Comments
 (0)