mirror of
https://github.com/zenlm/claude-sanitizer.git
synced 2026-07-26 22:30:36 +00:00
Fix linting issues: remove unused imports and variables
This commit is contained in:
@@ -6,12 +6,11 @@ Uses Claude to intelligently detect and redact sensitive data
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
import click
|
||||
from rich.console import Console
|
||||
from rich.progress import track, Progress, SpinnerColumn, TextColumn
|
||||
from rich.progress import Progress, SpinnerColumn, TextColumn
|
||||
from rich.table import Table
|
||||
from rich.panel import Panel
|
||||
import anthropic
|
||||
|
||||
@@ -43,6 +43,7 @@ class TestSensitiveKeywordDetection:
|
||||
entry = {"content": "function calculateTotal(items) { return sum; }"}
|
||||
# This might have 'total' but context is safe
|
||||
# The AI layer will determine it's safe
|
||||
assert not any(kw in entry["content"].lower() for kw in SENSITIVE_KEYWORDS if kw not in ["function", "return"])
|
||||
|
||||
|
||||
class TestClaudeSanitization:
|
||||
|
||||
Reference in New Issue
Block a user