chore(langchain): add ruff rules D (except D100 and D104)#31994
chore(langchain): add ruff rules D (except D100 and D104)#31994Mason Daugherty (mdrxy) merged 3 commits intolangchain-ai:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
CodSpeed WallTime Performance ReportMerging #31994 will not alter performanceComparing
|
a3130b6 to
63916b4
Compare
CodSpeed Instrumentation Performance ReportMerging #31994 will not alter performanceComparing Summary
|
1a731d6 to
ff6b28d
Compare
ff6b28d to
cf6a996
Compare
cf6a996 to
dc14217
Compare
0542395 to
6bfc242
Compare
6bfc242 to
772a1c0
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds additional ruff linting rules from the pydocstyle (D) category except for D100 and D104. The changes focus on enforcing proper docstring formatting standards across the langchain codebase.
Key changes include:
- Standardizing docstring formats to end with periods
- Updating multi-line docstrings to follow proper formatting guidelines
- Removing unnecessary empty lines after docstring opening quotes
- Converting single-line docstrings that spanned multiple lines to proper single-line format
Reviewed Changes
Copilot reviewed 142 out of 143 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| pyproject.toml | Expanded ruff rules from D1 to full D suite, added scripts exclusion |
| test files (multiple) | Fixed docstring period endings and multi-line formatting |
| source files (multiple) | Standardized docstring formatting, removed unnecessary empty lines |
| integration test files | Enhanced docstring documentation with proper Args/Returns sections |
1a788ab to
a91948f
Compare
a91948f to
37b593e
Compare
See https://docs.astral.sh/ruff/rules/#pydocstyle-d