Skip to content

Commit 0048bc8

Browse files
authored
Merge branch 'master' into feat/trim_messages-support-approx-alias
2 parents 5855208 + 9863023 commit 0048bc8

File tree

213 files changed

+2273
-1847
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+2273
-1847
lines changed

.github/pr-title-labeler.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ include-title: true
1111
label-for-breaking-changes: breaking
1212

1313
label-mapping:
14+
documentation: ["docs"]
1415
feature: ["feat"]
1516
fix: ["fix"]
16-
documentation: ["docs"]
17-
linting: ["style"]
18-
refactor: ["refactor"]
19-
performance: ["perf"]
2017
infra: ["build", "ci", "chore"]
2118
integration:
2219
[
@@ -36,5 +33,9 @@ label-mapping:
3633
"qdrant",
3734
"xai",
3835
]
39-
revert: ["revert"]
36+
linting: ["style"]
37+
performance: ["perf"]
38+
refactor: ["refactor"]
4039
release: ["release"]
40+
revert: ["revert"]
41+
tests: ["test"]

docs/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,13 @@ def example_function(param1: str, param2: int = 5) -> bool:
118118
119119
.. warning::
120120
This function is experimental and may change.
121-
122-
.. deprecated:: 0.2.0
123-
Use :func:`new_function` instead.
124121
"""
125122
```
126123

127124
**Special Markers:**
128125

129126
- `:private:` in docstrings excludes members from documentation
130-
- `.. deprecated::` creates deprecation notices
131127
- `.. warning::` adds warning admonitions
132-
- `.. beta::` (custom directive) marks beta features
133128

134129
#### Site Styling and Assets
135130

docs/api_reference/_extensions/gallery_directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class GalleryGridDirective(SphinxDirective):
5050
individual cards + ["image", "header", "content", "title"].
5151
5252
Danger:
53-
This directive can only be used in the context of a Myst documentation page as
53+
This directive can only be used in the context of a MyST documentation page as
5454
the templates use Markdown flavored formatting.
5555
"""
5656

docs/api_reference/conf.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def skip_private_members(app, what, name, obj, skip, options):
126126
"sphinx.ext.viewcode",
127127
"sphinxcontrib.autodoc_pydantic",
128128
"IPython.sphinxext.ipython_console_highlighting",
129-
"myst_parser",
129+
"myst_parser", # For generated index.md and reference.md
130130
"_extensions.gallery_directive",
131131
"sphinx_design",
132132
"sphinx_copybutton",
@@ -259,20 +259,8 @@ def skip_private_members(app, what, name, obj, skip, options):
259259
html_css_files = ["css/custom.css"]
260260
html_use_index = False
261261

262-
myst_enable_extensions = [
263-
"colon_fence", # ::: directive blocks (existing prior to LangGraph support)
264-
# LangGraph compatibility extensions added for consolidation
265-
# TODO: check for presence of each in LangGraph and only enable if needed
266-
# "deflist", # Definition lists
267-
# "tasklist", # - [ ] checkboxes (common in examples)
268-
# "attrs_inline", # {.class} inline attributes (MkDocs style)
269-
# "attrs_block", # Block-level attributes
270-
# "substitution", # Variable substitution
271-
# "linkify", # Auto-link URLs in text
272-
# Math extensions (uncomment if LangGraph uses mathematical notation)
273-
# "dollarmath", # $ math $ inline math
274-
# "amsmath", # Advanced math environments
275-
]
262+
# Only used on the generated index.md and reference.md files
263+
myst_enable_extensions = ["colon_fence"]
276264

277265
# generate autosummary even if no references
278266
autosummary_generate = True

docs/api_reference/create_api_rst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _load_package_modules(
214214
Traversal based on the file system makes it easy to determine which
215215
of the modules/packages are part of the package vs. 3rd party or built-in.
216216
217-
Parameters:
217+
Args:
218218
package_directory: Path to the package directory.
219219
submodule: Optional name of submodule to load.
220220

docs/api_reference/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sphinx-copybutton
66
sphinxcontrib-googleanalytics
77
pydata-sphinx-theme>=0.15
88
myst-parser>=3
9-
toml>=0.10.2
109
myst-nb>=1.1.1
10+
toml>=0.10.2
1111
pyyaml
1212
beautifulsoup4

libs/cli/langchain_cli/integration_template/integration_template/retrievers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class __ModuleName__Retriever(BaseRetriever):
4646
4747
retriever.invoke(query)
4848
49-
.. code-block:: none
49+
.. code-block::
5050
5151
# TODO: Example output.
5252
@@ -80,7 +80,7 @@ def format_docs(docs):
8080
8181
chain.invoke("...")
8282
83-
.. code-block:: none
83+
.. code-block::
8484
8585
# TODO: Example output.
8686

libs/cli/langchain_cli/integration_template/integration_template/toolkits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class __ModuleName__Toolkit(BaseToolkit):
4242
4343
toolkit.get_tools()
4444
45-
.. code-block:: none
45+
.. code-block::
4646
4747
# TODO: Example output.
4848
@@ -62,7 +62,7 @@ class __ModuleName__Toolkit(BaseToolkit):
6262
for event in events:
6363
event["messages"][-1].pretty_print()
6464
65-
.. code-block:: none
65+
.. code-block::
6666
6767
# TODO: Example output.
6868

libs/cli/pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = { text = "MIT" }
88
requires-python = ">=3.10.0,<4.0.0"
99
dependencies = [
1010
"typer>=0.17.0,<1.0.0",
11-
"gitpython>=3,<4.0.0",
11+
"gitpython>=3.0.0,<4.0.0",
1212
"langserve[all]>=0.0.51,<1.0.0",
1313
"uvicorn>=0.23.0,<1.0.0",
1414
"tomlkit>=0.12.0,<1.0.0",
@@ -30,7 +30,7 @@ langchain-cli = "langchain_cli.cli:app"
3030

3131
[dependency-groups]
3232
dev = ["pytest>=7.4.2,<9.0.0", "pytest-watcher>=0.3.4,<1.0.0"]
33-
lint = ["ruff>=0.12.2,<0.13", "mypy>=1.18.1,<1.19"]
33+
lint = ["ruff>=0.13.1,<0.14", "mypy>=1.18.1,<1.19"]
3434
test = ["langchain-core", "langchain"]
3535
typing = ["langchain"]
3636
test_integration = []
@@ -70,11 +70,14 @@ flake8-annotations.allow-star-arg-any = true
7070
flake8-annotations.mypy-init-return = true
7171
flake8-type-checking.runtime-evaluated-base-classes = ["pydantic.BaseModel","langchain_core.load.serializable.Serializable","langchain_core.runnables.base.RunnableSerializable"]
7272
pep8-naming.classmethod-decorators = [ "classmethod", "langchain_core.utils.pydantic.pre_init", "pydantic.field_validator", "pydantic.v1.root_validator",]
73-
pydocstyle.convention = "google"
7473
pyupgrade.keep-runtime-typing = true
7574

75+
[tool.ruff.lint.pydocstyle]
76+
convention = "google"
77+
ignore-var-parameters = true # ignore missing documentation for *args and **kwargs parameters
78+
7679
[tool.ruff.lint.per-file-ignores]
77-
"tests/**" = [ "D1", "DOC", "S", "SLF",]
80+
"tests/**" = [ "D1", "S", "SLF",]
7881
"scripts/**" = [ "INP", "S",]
7982

8083
[tool.pytest.ini_options]

libs/cli/scripts/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)