core: Add N(naming) ruff rules (#25362)

Public classes/functions are not renamed and rule is ignored for them.

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Christophe Bornet
2024-09-19 07:09:39 +02:00
committed by GitHub
parent 7835c0651f
commit fd21ffe293
38 changed files with 289 additions and 222 deletions

View File

@@ -3,7 +3,7 @@
from typing import Any, Optional
class LangChainException(Exception):
class LangChainException(Exception): # noqa: N818
"""General LangChain exception."""
@@ -11,7 +11,7 @@ class TracerException(LangChainException):
"""Base class for exceptions in tracers module."""
class OutputParserException(ValueError, LangChainException):
class OutputParserException(ValueError, LangChainException): # noqa: N818
"""Exception that output parsers should raise to signify a parsing error.
This exists to differentiate parsing errors from other code or execution errors