Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit c7be072

Browse files
fedec65claude
andcommitted
style: fix black formatting issues
Format 3 Python files to comply with black 26.1.0: - src/core/cache/citation_cache.py - src/tests/integration/test_orchestrator_e2e.py - src/tests/unit/test_registry.py Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent e0e8126 commit c7be072

3 files changed

Lines changed: 12 additions & 24 deletions

File tree

src/core/cache/citation_cache.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def __init__(self, db_path: Path | None = None, ttl_hours: int = 24):
5858
def _init_database(self) -> None:
5959
"""Create cache table if it doesn't exist"""
6060
with sqlite3.connect(self.db_path) as conn:
61-
conn.execute(
62-
"""
61+
conn.execute("""
6362
CREATE TABLE IF NOT EXISTS citation_cache (
6463
cache_key TEXT PRIMARY KEY,
6564
query TEXT NOT NULL,
@@ -69,15 +68,12 @@ def _init_database(self) -> None:
6968
hit_count INTEGER DEFAULT 0,
7069
last_accessed TEXT
7170
)
72-
"""
73-
)
71+
""")
7472
# Create index on expiration for faster cleanup
75-
conn.execute(
76-
"""
73+
conn.execute("""
7774
CREATE INDEX IF NOT EXISTS idx_expires_at
7875
ON citation_cache(expires_at)
79-
"""
80-
)
76+
""")
8177
conn.commit()
8278

8379
def _generate_cache_key(self, query: str, filters: dict | None = None) -> str:

src/tests/integration/test_orchestrator_e2e.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def temp_commands_dir(tmp_path: Path) -> Path:
5656

5757
for filename, description in test_agents:
5858
agent_file = commands_dir / filename
59-
agent_file.write_text(
60-
f"""# {filename.replace('.md', '')}
59+
agent_file.write_text(f"""# {filename.replace('.md', '')}
6160
6261
{description}
6362
@@ -71,8 +70,7 @@ def temp_commands_dir(tmp_path: Path) -> Path:
7170
7271
## Output
7372
Returns processed results.
74-
"""
75-
)
73+
""")
7674

7775
return tmp_path
7876

src/tests/unit/test_registry.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,7 @@ def test_custom_commands_dir(self) -> None:
373373
with TemporaryDirectory() as tmpdir:
374374
# Create a mock command file
375375
cmd_file = Path(tmpdir) / "agent:test.md"
376-
cmd_file.write_text(
377-
"""# /agent:test - Test Agent
376+
cmd_file.write_text("""# /agent:test - Test Agent
378377
379378
**Version**: 1.0.0
380379
**Domain**: Testing
@@ -383,8 +382,7 @@ def test_custom_commands_dir(self) -> None:
383382
384383
## What This Agent Does
385384
- **testing**: Runs tests
386-
"""
387-
)
385+
""")
388386

389387
registry = AgentRegistry(commands_dir=tmpdir)
390388

@@ -566,8 +564,7 @@ def test_parse_command_file_with_all_fields(self) -> None:
566564
"""Test parsing a well-formed command file."""
567565
with TemporaryDirectory() as tmpdir:
568566
cmd_file = Path(tmpdir) / "agent:complete.md"
569-
cmd_file.write_text(
570-
"""# /agent:complete - Complete Test Agent
567+
cmd_file.write_text("""# /agent:complete - Complete Test Agent
571568
572569
**Version**: 2.5.0
573570
**Domain**: Complete Testing
@@ -578,8 +575,7 @@ def test_parse_command_file_with_all_fields(self) -> None:
578575
## What This Agent Does
579576
- **analysis**: Analyzes data thoroughly
580577
- **reporting**: Generates detailed reports
581-
"""
582-
)
578+
""")
583579

584580
registry = AgentRegistry(commands_dir=tmpdir)
585581
agent = registry.get_agent("complete")
@@ -595,12 +591,10 @@ def test_parse_command_file_minimal(self) -> None:
595591
"""Test parsing a minimal command file."""
596592
with TemporaryDirectory() as tmpdir:
597593
cmd_file = Path(tmpdir) / "agent:minimal.md"
598-
cmd_file.write_text(
599-
"""# Minimal Agent
594+
cmd_file.write_text("""# Minimal Agent
600595
601596
A minimal agent without standard formatting.
602-
"""
603-
)
597+
""")
604598

605599
registry = AgentRegistry(commands_dir=tmpdir)
606600
agent = registry.get_agent("minimal")

0 commit comments

Comments
 (0)