Skip to content

Commit 13fb974

Browse files
committed
fix formatting
Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 2e90389 commit 13fb974

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/basic_memory/cli/commands/cloud/upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _get_files_to_upload(
139139
gitignore_path = directory / ".gitignore"
140140
gitignore_exists = gitignore_path.exists() and use_gitignore
141141
print(f"\nScanning directory: {directory}")
142-
print(f"Using .bmignore: Yes")
142+
print("Using .bmignore: Yes")
143143
print(f"Using .gitignore: {'Yes' if gitignore_exists else 'No'}")
144144
print(f"Ignore patterns loaded: {len(ignore_patterns)}")
145145
if ignore_patterns and len(ignore_patterns) <= 20:
@@ -183,7 +183,7 @@ def _get_files_to_upload(
183183
files.append((file_path, remote_path))
184184

185185
if verbose:
186-
print(f"\nSummary:")
186+
print("\nSummary:")
187187
print(f" Files to upload: {len(files)}")
188188
print(f" Files ignored: {len(ignored_files)}")
189189

src/basic_memory/cli/commands/cloud/upload_command.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ async def _upload():
9393

9494
# Perform upload (or dry run)
9595
if dry_run:
96-
console.print(f"[yellow]DRY RUN: Showing what would be uploaded to '{project}'[/yellow]")
96+
console.print(
97+
f"[yellow]DRY RUN: Showing what would be uploaded to '{project}'[/yellow]"
98+
)
9799
else:
98100
console.print(f"[blue]Uploading {path} to project '{project}'...[/blue]")
99101

@@ -105,7 +107,7 @@ async def _upload():
105107
raise typer.Exit(1)
106108

107109
if dry_run:
108-
console.print(f"[yellow]DRY RUN complete - no files were uploaded[/yellow]")
110+
console.print("[yellow]DRY RUN complete - no files were uploaded[/yellow]")
109111
else:
110112
console.print(f"[green]✅ Successfully uploaded to '{project}'[/green]")
111113

tests/cli/test_upload.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ def test_no_gitignore_still_respects_bmignore(self, tmp_path):
351351
"""Test that --no-gitignore still respects .bmignore patterns."""
352352
# Create test files
353353
(tmp_path / "keep.txt").write_text("keep")
354-
(tmp_path / ".hidden").write_text("hidden") # Should be ignored by .bmignore default pattern
354+
(tmp_path / ".hidden").write_text(
355+
"hidden"
356+
) # Should be ignored by .bmignore default pattern
355357

356358
# Create .gitignore that would allow .hidden
357359
gitignore_file = tmp_path / ".gitignore"
@@ -378,7 +380,7 @@ def test_verbose_shows_filtering_info(self, tmp_path, capsys):
378380
gitignore_file.write_text("*.pyc\n")
379381

380382
# Run with verbose=True
381-
result = _get_files_to_upload(tmp_path, verbose=True, use_gitignore=True)
383+
_get_files_to_upload(tmp_path, verbose=True, use_gitignore=True)
382384

383385
# Capture output
384386
captured = capsys.readouterr()

0 commit comments

Comments
 (0)