add justfile instead of Makefile, add ignores to test coverage

Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
phernandez
2025-06-05 12:26:15 -05:00
parent 2162ad57fe
commit f608cd13f1
22 changed files with 222 additions and 373 deletions
+2 -2
View File
@@ -180,10 +180,10 @@ async def initialize_file_sync(
try:
from basic_memory.services.migration_service import migration_manager
if not migration_manager.is_ready:
if not migration_manager.is_ready: # pragma: no cover
migration_manager.mark_completed("Migration completed with file sync")
logger.info("Marked migration as completed after file sync")
except Exception as e:
except Exception as e: # pragma: no cover
logger.warning(f"Could not update migration status: {e}")
# Then start the watch service in the background
@@ -46,7 +46,7 @@ class SyncStatusTracker:
)
self._update_global_status()
def update_project_progress(
def update_project_progress( # pragma: no cover
self,
project_name: str,
status: SyncStatus,
@@ -55,7 +55,7 @@ class SyncStatusTracker:
files_total: Optional[int] = None,
) -> None:
"""Update progress for a project."""
if project_name not in self._project_statuses:
if project_name not in self._project_statuses: # pragma: no cover
return
project_status = self._project_statuses[project_name]
@@ -101,7 +101,7 @@ class SyncStatusTracker:
def _update_global_status(self) -> None:
"""Update global status based on project statuses."""
if not self._project_statuses:
if not self._project_statuses: # pragma: no cover
self._global_status = SyncStatus.IDLE
return
@@ -127,7 +127,7 @@ class SyncStatusTracker:
return self._global_status in (SyncStatus.SCANNING, SyncStatus.SYNCING)
@property
def is_ready(self) -> bool:
def is_ready(self) -> bool: # pragma: no cover
"""Check if system is ready (no sync in progress)."""
return self._global_status in (SyncStatus.IDLE, SyncStatus.COMPLETED)
@@ -139,7 +139,7 @@ class SyncStatusTracker:
"""Get all project statuses."""
return self._project_statuses.copy()
def get_summary(self) -> str:
def get_summary(self) -> str: # pragma: no cover
"""Get a user-friendly summary of sync status."""
if self._global_status == SyncStatus.IDLE:
return "✅ System ready"