From 3bba5fc50627256c1d93d283328f5deb926586ab Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 14 Aug 2025 13:03:23 +0800 Subject: [PATCH] Fix linting --- lightrag/api/routers/document_routes.py | 4 +++- lightrag/lightrag.py | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lightrag/api/routers/document_routes.py b/lightrag/api/routers/document_routes.py index ffb085a3..eaec6fbf 100644 --- a/lightrag/api/routers/document_routes.py +++ b/lightrag/api/routers/document_routes.py @@ -1058,7 +1058,9 @@ async def run_scanning_process( logger.info(f"Scanning process completed: {total_files} files Processed.") else: # No new files to index, check if there are any documents in the queue - logger.info("No upload file found, check if there are any documents in the queue...") + logger.info( + "No upload file found, check if there are any documents in the queue..." + ) await rag.apipeline_process_enqueue_documents() except Exception as e: diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index ef263128..942cc55a 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -1131,7 +1131,9 @@ class LightRAG: # Delete inconsistent document entries one by one if inconsistent_docs: async with pipeline_status_lock: - summary_message = f"Inconsistent document entries found: {len(inconsistent_docs)}" + summary_message = ( + f"Inconsistent document entries found: {len(inconsistent_docs)}" + ) logger.info(summary_message) pipeline_status["latest_message"] = summary_message pipeline_status["history_messages"].append(summary_message) @@ -1159,9 +1161,7 @@ class LightRAG: except Exception as e: # Log deletion failure async with pipeline_status_lock: - error_message = ( - f"Failed to delete entry: {doc_id} - {str(e)}" - ) + error_message = f"Failed to delete entry: {doc_id} - {str(e)}" logger.error(error_message) pipeline_status["latest_message"] = error_message pipeline_status["history_messages"].append(error_message)