style: apply ruff format to all source and test files

Fixes ruff format --check CI failure. 22 files reformatted to satisfy
the ruff formatter's style requirements. No logic changes, only
whitespace/formatting adjustments.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
yusyus
2026-02-18 22:50:05 +03:00
parent 0878ad3ef6
commit 4b89e0a015
22 changed files with 707 additions and 597 deletions

View File

@@ -426,8 +426,7 @@ class DocToSkillConverter:
"url": url,
"title": doc.title or "",
"content": "\n\n".join(
p for p in doc._extract_content_text().split("\n\n")
if len(p.strip()) >= 20
p for p in doc._extract_content_text().split("\n\n") if len(p.strip()) >= 20
),
"headings": [
{"level": f"h{h.level}", "text": h.text, "id": h.id or ""}
@@ -2309,9 +2308,7 @@ def execute_enhancement(config: dict[str, Any], args: argparse.Namespace, conver
# Check if workflow was already executed (for logging context)
workflow_executed = (
converter
and hasattr(converter, 'workflow_executed')
and converter.workflow_executed
converter and hasattr(converter, "workflow_executed") and converter.workflow_executed
)
workflow_name = converter.workflow_name if workflow_executed else None
@@ -2328,7 +2325,9 @@ def execute_enhancement(config: dict[str, Any], args: argparse.Namespace, conver
logger.info("=" * 80)
if workflow_executed:
logger.info(f" Running after workflow: {workflow_name}")
logger.info(" (Workflow provides specialized analysis, enhancement provides general improvements)")
logger.info(
" (Workflow provides specialized analysis, enhancement provides general improvements)"
)
logger.info("")
try: