Fix linting

This commit is contained in:
yangdx
2025-05-06 22:03:40 +08:00
parent c8ecfa2d68
commit dbfcf30801
2 changed files with 4 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ from .operate import (
naive_query, naive_query,
query_with_keywords, query_with_keywords,
) )
from .prompt import GRAPH_FIELD_SEP, PROMPTS from .prompt import GRAPH_FIELD_SEP
from .utils import ( from .utils import (
Tokenizer, Tokenizer,
TiktokenTokenizer, TiktokenTokenizer,

View File

@@ -165,7 +165,9 @@ def setup_logger(
# Get log file max size and backup count from environment variables # Get log file max size and backup count from environment variables
log_max_bytes = get_env_value("LOG_MAX_BYTES", DEFAULT_LOG_MAX_BYTES, int) log_max_bytes = get_env_value("LOG_MAX_BYTES", DEFAULT_LOG_MAX_BYTES, int)
log_backup_count = get_env_value("LOG_BACKUP_COUNT", DEFAULT_LOG_BACKUP_COUNT, int) log_backup_count = get_env_value(
"LOG_BACKUP_COUNT", DEFAULT_LOG_BACKUP_COUNT, int
)
try: try:
# Add file handler # Add file handler