From 0a4aed9e1b1b43dca4358f45849f40c8a5035396 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 14 Mar 2026 13:04:40 +0000 Subject: [PATCH] fix: resolve ruff lint errors (unused imports and variables) --- src/claude_memory/sync.py | 1 - tests/test_api.py | 2 -- tests/test_sync.py | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/claude_memory/sync.py b/src/claude_memory/sync.py index 812feb6..2c9b027 100644 --- a/src/claude_memory/sync.py +++ b/src/claude_memory/sync.py @@ -7,7 +7,6 @@ import json import logging import sqlite3 import threading -import time import urllib.error import urllib.request from datetime import datetime, timezone diff --git a/tests/test_api.py b/tests/test_api.py index 7f0f178..88ecfc6 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -316,7 +316,6 @@ async def test_import_memories(client): @pytest.mark.asyncio async def test_sync_full_dump_without_since(client): ac, conn, app_mod = client - now = datetime.now(timezone.utc) conn.fetch.return_value = [ _make_memory_row(id=1, content="mem1", deleted_at=None), _make_memory_row(id=2, content="mem2", deleted_at=None), @@ -344,7 +343,6 @@ async def test_sync_full_dump_without_since(client): @pytest.mark.asyncio async def test_sync_incremental_with_since(client): ac, conn, app_mod = client - now = datetime.now(timezone.utc) conn.fetch.return_value = [ _make_memory_row(id=3, content="updated mem", deleted_at=None), ] diff --git a/tests/test_sync.py b/tests/test_sync.py index 8d04ee6..9ba4048 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -2,10 +2,9 @@ import json import os -import sqlite3 import sys from datetime import datetime, timezone -from unittest.mock import MagicMock, patch +from unittest.mock import patch import pytest