Skip to content

Commit 14799b1

Browse files
authored
infra[patch]: add base deps and fix docs lint (langchain-ai#13998)
1 parent 926d4cf commit 14799b1

File tree

8 files changed

+48
-19
lines changed

8 files changed

+48
-19
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ spell_fix:
4444
lint:
4545
poetry run ruff docs templates cookbook
4646
poetry run ruff format docs templates cookbook --diff
47+
poetry run ruff --select I docs templates cookbook
4748

4849
format format_diff:
4950
poetry run ruff format docs templates cookbook

docs/docs/integrations/retrievers/bedrock.ipynb

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"outputs": [],
7878
"source": [
7979
"from botocore.client import Config\n",
80-
"\n",
8180
"from langchain.chains import RetrievalQA\n",
8281
"from langchain.llms import Bedrock\n",
8382
"\n",

docs/docs/modules/agents/how_to/agent_iter.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"metadata": {},
2323
"outputs": [],
2424
"source": [
25-
"from pydantic.v1 import BaseModel, Field\n",
2625
"from langchain.agents import AgentType, initialize_agent\n",
2726
"from langchain.agents.tools import Tool\n",
2827
"from langchain.chains import LLMMathChain\n",
29-
"from langchain.chat_models import ChatOpenAI"
28+
"from langchain.chat_models import ChatOpenAI\n",
29+
"from pydantic.v1 import BaseModel, Field"
3030
]
3131
},
3232
{

libs/core/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ lint lint_diff:
3030
./scripts/check_imports.sh
3131
poetry run ruff .
3232
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff format $(PYTHON_FILES) --diff
33+
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff --select I $(PYTHON_FILES)
3334
[ "$(PYTHON_FILES)" = "" ] || poetry run mypy $(PYTHON_FILES)
3435

3536
format format_diff:

libs/experimental/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ lint format: PYTHON_FILES=.
3232
lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=libs/experimental --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$')
3333

3434
lint lint_diff:
35-
poetry run mypy $(PYTHON_FILES)
36-
poetry run ruff format $(PYTHON_FILES) --diff
3735
poetry run ruff .
36+
poetry run ruff format $(PYTHON_FILES) --diff
37+
poetry run ruff --select I $(PYTHON_FILES)
38+
poetry run mypy $(PYTHON_FILES)
3839

3940
format format_diff:
4041
poetry run ruff format $(PYTHON_FILES)

libs/langchain/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ lint lint_diff:
5454
./scripts/check_imports.sh
5555
poetry run ruff .
5656
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff format $(PYTHON_FILES) --diff
57+
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff --select I $(PYTHON_FILES)
5758
[ "$(PYTHON_FILES)" = "" ] || poetry run mypy $(PYTHON_FILES)
5859

5960
format format_diff:

poetry.lock

+34-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ nbdoc = "^0.0.82"
3030

3131
[tool.poetry.group.lint.dependencies]
3232
ruff = "^0.1.5"
33+
langchain-core = { path = "libs/core/", develop = true }
34+
langchain = { path = "libs/langchain/", develop = true }
35+
langchain-experimental = { path = "libs/experimental/", develop = true }
3336

3437
[tool.poetry.group.codespell.dependencies]
3538
codespell = "^2.2.0"
3639

3740

3841
[tool.poetry.group.dev.dependencies]
39-
42+
langchain-core = { path = "libs/core/", develop = true }
43+
langchain = { path = "libs/langchain/", develop = true }
44+
langchain-experimental = { path = "libs/experimental/", develop = true }
4045

4146
[tool.poetry.group.test.dependencies]
4247

0 commit comments

Comments
 (0)