style: Run ruff format on 15 files (CI fix)

CI uses 'ruff format' not 'black' - applied proper formatting:

Files reformatted by ruff:
- config_extractor.py
- doc_scraper.py
- how_to_guide_builder.py
- llms_txt_parser.py
- pattern_recognizer.py
- test_example_extractor.py
- unified_codebase_analyzer.py
- test_architecture_scenarios.py
- test_async_scraping.py
- test_github_scraper.py
- test_guide_enhancer.py
- test_install_agent.py
- test_issue_219_e2e.py
- test_llms_txt_downloader.py
- test_skip_llms_txt.py

Fixes CI formatting check failure.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
yusyus
2026-01-18 00:01:30 +03:00
parent 9d43956b1d
commit 85c8d9d385
15 changed files with 179 additions and 510 deletions

View File

@@ -124,9 +124,7 @@ class UnifiedCodebaseAnalyzer:
AnalysisResult with all 3 streams
"""
# Use three-stream fetcher
fetcher = GitHubThreeStreamFetcher(
repo_url, self.github_token, interactive=interactive
)
fetcher = GitHubThreeStreamFetcher(repo_url, self.github_token, interactive=interactive)
three_streams = fetcher.fetch(output_dir)
# Analyze code with specified depth
@@ -245,9 +243,7 @@ class UnifiedCodebaseAnalyzer:
basic = self.basic_analysis(directory)
# Run full C3.x analysis using existing codebase_scraper
print(
"🔍 Running C3.x components (patterns, examples, guides, configs, architecture)..."
)
print("🔍 Running C3.x components (patterns, examples, guides, configs, architecture)...")
try:
# Import codebase analyzer
@@ -282,19 +278,11 @@ class UnifiedCodebaseAnalyzer:
c3x = {**basic, "analysis_type": "c3x", **c3x_data}
print("✅ C3.x analysis complete!")
print(
f" - {len(c3x_data.get('c3_1_patterns', []))} design patterns detected"
)
print(
f" - {c3x_data.get('c3_2_examples_count', 0)} test examples extracted"
)
print(
f" - {len(c3x_data.get('c3_3_guides', []))} how-to guides generated"
)
print(f" - {len(c3x_data.get('c3_1_patterns', []))} design patterns detected")
print(f" - {c3x_data.get('c3_2_examples_count', 0)} test examples extracted")
print(f" - {len(c3x_data.get('c3_3_guides', []))} how-to guides generated")
print(f" - {len(c3x_data.get('c3_4_configs', []))} config files analyzed")
print(
f" - {len(c3x_data.get('c3_7_architecture', []))} architectural patterns found"
)
print(f" - {len(c3x_data.get('c3_7_architecture', []))} architectural patterns found")
return c3x
@@ -451,9 +439,7 @@ class UnifiedCodebaseAnalyzer:
if item.is_dir():
# Only include immediate subdirectories
structure["children"].append(
{"name": item.name, "type": "directory"}
)
structure["children"].append({"name": item.name, "type": "directory"})
elif item.is_file():
structure["children"].append(
{"name": item.name, "type": "file", "extension": item.suffix}