mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 19:12:42 +00:00
infra: add print rule to ruff (#16221)
Added noqa for existing prints. Can slowly remove / will prevent more being intro'd
This commit is contained in:
@@ -49,7 +49,7 @@ class ArizeCallbackHandler(BaseCallbackHandler):
|
||||
if SPACE_KEY == "SPACE_KEY" or API_KEY == "API_KEY":
|
||||
raise ValueError("❌ CHANGE SPACE AND API KEYS")
|
||||
else:
|
||||
print("✅ Arize client setup done! Now you can start using Arize!")
|
||||
print("✅ Arize client setup done! Now you can start using Arize!") # noqa: T201
|
||||
|
||||
def on_llm_start(
|
||||
self, serialized: Dict[str, Any], prompts: List[str], **kwargs: Any
|
||||
@@ -161,9 +161,9 @@ class ArizeCallbackHandler(BaseCallbackHandler):
|
||||
environment=Environments.PRODUCTION,
|
||||
)
|
||||
if response_from_arize.status_code == 200:
|
||||
print("✅ Successfully logged data to Arize!")
|
||||
print("✅ Successfully logged data to Arize!") # noqa: T201
|
||||
else:
|
||||
print(f'❌ Logging failed "{response_from_arize.text}"')
|
||||
print(f'❌ Logging failed "{response_from_arize.text}"') # noqa: T201
|
||||
|
||||
def on_llm_error(self, error: BaseException, **kwargs: Any) -> None:
|
||||
"""Do nothing."""
|
||||
|
Reference in New Issue
Block a user