From 0a7a283dda5a8c23e1490c68e8f7e010b54eb3cd Mon Sep 17 00:00:00 2001 From: aakash Date: Wed, 15 Oct 2025 04:15:44 -0700 Subject: [PATCH] Docs/CI: fix broken image paths and ruff lint\n\n- Move screenshot to docs/videos and update references\n- Remove obsolete rag-query-results image\n- Rename variable to satisfy ruff --- docs/slack-setup-guide.md | 4 ++-- {videos => docs/videos}/rag-sky-random.png | Bin tests/test_channel_by_id_or_name.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename {videos => docs/videos}/rag-sky-random.png (100%) diff --git a/docs/slack-setup-guide.md b/docs/slack-setup-guide.md index 59a9fa3..5cc022d 100644 --- a/docs/slack-setup-guide.md +++ b/docs/slack-setup-guide.md @@ -296,7 +296,7 @@ python -m apps.slack_rag \ Here's what you'll see when running a RAG query on your Slack workspace: -![RAG Query Results](rag-query-results.png) + **What this screenshot shows:** - ✅ **Successful MCP connection** to Slack workspace @@ -312,7 +312,7 @@ This example shows a real query against the Sky Lab Computing workspace’s “r ### Screenshot -![Sky Random RAG](videos/rag-sky-random.png) +![Sky Random RAG](docs/videos/rag-sky-random.png) ### Prerequisites diff --git a/videos/rag-sky-random.png b/docs/videos/rag-sky-random.png similarity index 100% rename from videos/rag-sky-random.png rename to docs/videos/rag-sky-random.png diff --git a/tests/test_channel_by_id_or_name.py b/tests/test_channel_by_id_or_name.py index 899ddbb..46b4c05 100644 --- a/tests/test_channel_by_id_or_name.py +++ b/tests/test_channel_by_id_or_name.py @@ -120,9 +120,9 @@ async def fetch( print("=" * 60) q_terms = [t.strip().lower() for t in query.split() if t.strip()] lines = [ - l - for l in (text_blob.splitlines() if text_blob else []) - if l and not l.startswith("MsgID,") + line + for line in (text_blob.splitlines() if text_blob else []) + if line and not line.startswith("MsgID,") ] # Score lines by count of query terms present scored = []