core: Add various ruff rules (#26836)

Adds
- ASYNC
- COM
- DJ
- EXE
- FLY
- FURB
- ICN
- INT
- LOG
- NPY
- PD
- Q
- RSE
- SLOT
- T10
- TID
- YTT

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Christophe Bornet
2024-10-08 00:30:27 +02:00
committed by GitHub
parent 5c826faece
commit 16f5fdb38b
27 changed files with 108 additions and 53 deletions

View File

@@ -1336,7 +1336,7 @@ class ChatPromptTemplate(BaseChatPromptTemplate):
Args:
file_path: path to file.
"""
raise NotImplementedError()
raise NotImplementedError
def pretty_repr(self, html: bool = False) -> str:
"""Human-readable representation.

View File

@@ -464,4 +464,4 @@ class FewShotChatMessagePromptTemplate(
Returns:
A pretty representation of the prompt template.
"""
raise NotImplementedError()
raise NotImplementedError

View File

@@ -132,4 +132,4 @@ class ImagePromptTemplate(BasePromptTemplate[ImageURL]):
Returns:
A pretty representation of the prompt.
"""
raise NotImplementedError()
raise NotImplementedError