Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Add ruff rules for Pylint PLC (Convention) and PLE (Errors) #29286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Jan 18, 2025

Copy link

vercel bot commented Jan 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jan 25, 2025 5:18pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Jan 18, 2025
@cbornet cbornet force-pushed the ruff-core-plc branch 2 times, most recently from d20fd3b to 3a291b1 Compare January 18, 2025 14:56
@cbornet cbornet changed the title core: Add ruff rules PLC (Pylint Convention) core: Add ruff rules for Pylint PLC (Convention) and PLE (Errors) Jan 18, 2025
@@ -6,7 +6,6 @@
from collections import deque
from collections.abc import AsyncIterator, Iterator
from io import StringIO
from typing import Optional as Optional
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were intentionally due to pydantic forward references not being properly resolved. Do you know if the underlying issue is resolved? We'd potentially be seeing issues when running langchain or langchain community unit tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests pass, so I guess it's OK ?
Do you have the pydantic reference issue ?

@cbornet cbornet force-pushed the ruff-core-plc branch 2 times, most recently from f49f83c to a334336 Compare January 25, 2025 17:08
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

2 participants