ruff format

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-08-12 15:33:17 -07:00
parent 5aa52375c3
commit 54374bd7be
4 changed files with 9 additions and 11 deletions

View file

@ -195,9 +195,7 @@ async def index_clickup_tasks(
assignee.get("username", "Unknown") assignee.get("username", "Unknown")
for assignee in task_assignees for assignee in task_assignees
] ]
content_parts.append( content_parts.append(f"Assignees: {', '.join(assignee_names)}")
f"Assignees: {', '.join(assignee_names)}"
)
if task_due_date: if task_due_date:
content_parts.append(f"Due Date: {task_due_date}") content_parts.append(f"Due Date: {task_due_date}")

View file

@ -163,7 +163,6 @@ async def index_discord_messages(
f"Indexing Discord messages from {start_date_iso} to {end_date_iso}" f"Indexing Discord messages from {start_date_iso} to {end_date_iso}"
) )
try: try:
await task_logger.log_task_progress( await task_logger.log_task_progress(
log_entry, log_entry,
@ -220,7 +219,9 @@ async def index_discord_messages(
try: try:
channels = await discord_client.get_text_channels(guild_id) channels = await discord_client.get_text_channels(guild_id)
if not channels: if not channels:
logger.info(f"No channels found in guild {guild_name}. Skipping.") logger.info(
f"No channels found in guild {guild_name}. Skipping."
)
skipped_channels.append(f"{guild_name} (no channels)") skipped_channels.append(f"{guild_name} (no channels)")
documents_skipped += 1 documents_skipped += 1
continue continue
@ -310,8 +311,10 @@ async def index_discord_messages(
) )
# Skip duplicates by hash # Skip duplicates by hash
existing_document_by_hash = await check_duplicate_document_by_hash( existing_document_by_hash = (
session, content_hash await check_duplicate_document_by_hash(
session, content_hash
)
) )
if existing_document_by_hash: if existing_document_by_hash:
logger.info( logger.info(

View file

@ -217,9 +217,7 @@ async def index_github_repos(
# Chunk the content # Chunk the content
try: try:
chunks_data = [ chunks_data = [await create_document_chunks(file_content)][0]
await create_document_chunks(file_content)
][0]
# Use code chunker if available, otherwise regular chunker # Use code chunker if available, otherwise regular chunker
if hasattr(config, "code_chunker_instance"): if hasattr(config, "code_chunker_instance"):

View file

@ -2,7 +2,6 @@
Base functionality and shared imports for document processors. Base functionality and shared imports for document processors.
""" """
from langchain_community.document_transformers import MarkdownifyTransformer from langchain_community.document_transformers import MarkdownifyTransformer
from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.future import select from sqlalchemy.future import select