From aa9bcbd02e5e901124c616c12e700c68b5ced7a6 Mon Sep 17 00:00:00 2001 From: Christophe Bornet Date: Fri, 17 Jan 2025 18:22:54 +0100 Subject: [PATCH] core: Add ruff rule W293 (whitespaces) --- libs/core/langchain_core/messages/ai.py | 2 +- libs/core/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/langchain_core/messages/ai.py b/libs/core/langchain_core/messages/ai.py index 727a0045ffba5..074bbf9a5689c 100644 --- a/libs/core/langchain_core/messages/ai.py +++ b/libs/core/langchain_core/messages/ai.py @@ -128,7 +128,7 @@ class UsageMetadata(TypedDict): """Total token count. Sum of input_tokens + output_tokens.""" input_token_details: NotRequired[InputTokenDetails] """Breakdown of input token counts. - + Does *not* need to sum to full input token count. Does *not* need to have all keys. """ output_token_details: NotRequired[OutputTokenDetails] diff --git a/libs/core/pyproject.toml b/libs/core/pyproject.toml index 489bda0580214..1342e7f13109b 100644 --- a/libs/core/pyproject.toml +++ b/libs/core/pyproject.toml @@ -45,7 +45,7 @@ python = ">=3.12.4" [tool.ruff.lint] select = [ "ASYNC", "B", "C4", "COM", "DJ", "E", "EM", "EXE", "F", "FLY", "FURB", "I", "ICN", "INT", "LOG", "N", "NPY", "PD", "PIE", "Q", "RSE", "S", "SIM", "SLOT", "T10", "T201", "TID", "UP", "W", "YTT",] -ignore = [ "COM812", "UP007", "W293", "S101", "S110", "S112",] +ignore = [ "COM812", "UP007", "S101", "S110", "S112",] [tool.coverage.run] omit = [ "tests/*",]