fix: resolve ruff lint errors (unused imports and variables)
This commit is contained in:
parent
1e00cc9de6
commit
eba5cf6a82
5 changed files with 2 additions and 8 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
from datetime import datetime, timezone
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from fastapi import Depends, FastAPI, HTTPException
|
from fastapi import Depends, FastAPI, HTTPException
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
"""Tests for credential detection and redaction."""
|
"""Tests for credential detection and redaction."""
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from claude_memory.credential_detector import (
|
from claude_memory.credential_detector import (
|
||||||
DetectedCredential,
|
|
||||||
detect_credentials,
|
detect_credentials,
|
||||||
is_sensitive,
|
is_sensitive,
|
||||||
redact_credentials,
|
redact_credentials,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
"""Tests for AES-256-GCM encryption module."""
|
"""Tests for AES-256-GCM encryption module."""
|
||||||
|
|
||||||
import hashlib
|
|
||||||
import os
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ os.environ.pop("CLAUDE_MEMORY_API_KEY", None)
|
||||||
# Add src to path so we can import without installing
|
# Add src to path so we can import without installing
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))
|
||||||
|
|
||||||
from claude_memory.mcp_server import MemoryServer, TOOLS, SERVER_NAME, SERVER_VERSION, PROTOCOL_VERSION
|
from claude_memory.mcp_server import MemoryServer, SERVER_NAME, SERVER_VERSION, PROTOCOL_VERSION
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
"""Tests for Vault KV v2 client with mocked urllib."""
|
"""Tests for Vault KV v2 client with mocked urllib."""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from unittest.mock import MagicMock, mock_open, patch
|
from unittest.mock import MagicMock, mock_open, patch
|
||||||
|
|
||||||
|
|
@ -100,7 +99,7 @@ class TestVaultWrite:
|
||||||
mock_urlopen.return_value = mock_response
|
mock_urlopen.return_value = mock_response
|
||||||
|
|
||||||
client = VaultClient()
|
client = VaultClient()
|
||||||
result = client.write("myapp/config", {"key": "value"})
|
client.write("myapp/config", {"key": "value"})
|
||||||
|
|
||||||
# Verify the request was made with correct data
|
# Verify the request was made with correct data
|
||||||
call_args = mock_urlopen.call_args
|
call_args = mock_urlopen.call_args
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue