Skip to content

Commit 0e429be

Browse files
committed
Ran black
1 parent 4d8d3b3 commit 0e429be

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/claude_code_publish/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,9 @@ def generate_html(json_path, output_dir, github_repo=None):
914914
</html>"""
915915
index_path = output_dir / "index.html"
916916
index_path.write_text(index_content)
917-
print(f"Generated {index_path.resolve()} ({total_convs} prompts, {total_pages} pages)")
917+
print(
918+
f"Generated {index_path.resolve()} ({total_convs} prompts, {total_pages} pages)"
919+
)
918920

919921

920922
@click.group(cls=DefaultGroup, default="session", default_if_no_args=False)
@@ -1243,7 +1245,9 @@ def generate_html_from_session_data(session_data, output_dir, github_repo=None):
12431245
</html>"""
12441246
index_path = output_dir / "index.html"
12451247
index_path.write_text(index_content)
1246-
click.echo(f"Generated {index_path.resolve()} ({total_convs} prompts, {total_pages} pages)")
1248+
click.echo(
1249+
f"Generated {index_path.resolve()} ({total_convs} prompts, {total_pages} pages)"
1250+
)
12471251

12481252

12491253
@cli.command("import")

tests/test_generate_html.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,15 +647,20 @@ def test_long_text_in_continuation_appears_in_index(self, output_dir):
647647
{
648648
"type": "user",
649649
"timestamp": "2025-01-01T10:00:00.000Z",
650-
"message": {"content": "Build a Redis JavaScript module", "role": "user"},
650+
"message": {
651+
"content": "Build a Redis JavaScript module",
652+
"role": "user",
653+
},
651654
},
652655
# Some assistant work
653656
{
654657
"type": "assistant",
655658
"timestamp": "2025-01-01T10:00:05.000Z",
656659
"message": {
657660
"role": "assistant",
658-
"content": [{"type": "text", "text": "I'll start working on this."}],
661+
"content": [
662+
{"type": "text", "text": "I'll start working on this."}
663+
],
659664
},
660665
},
661666
# Continuation prompt (context was summarized)
@@ -716,9 +721,9 @@ def test_long_text_in_continuation_appears_in_index(self, output_dir):
716721
# The long text summary should appear in the index
717722
# This is the bug: currently it doesn't because the continuation
718723
# conversation is skipped entirely
719-
assert "All tasks completed successfully" in index_html, (
720-
"Long text from continuation conversation should appear in index"
721-
)
724+
assert (
725+
"All tasks completed successfully" in index_html
726+
), "Long text from continuation conversation should appear in index"
722727
assert "Redis JavaScript Module" in index_html
723728

724729

0 commit comments

Comments
 (0)