Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/dir2md/compressors/gravitas.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
reducing token count while maintaining readability.
"""

from typing import Dict, Optional
import re
from typing import Dict


class GravitasCompressor:
Expand Down
4 changes: 2 additions & 2 deletions src/dir2md/query/suggester.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ def get_recent_queries(self, limit: int = 5) -> List[str]:

print(f"Current query: '{test_query}'")
print(f"Matched {len(matched_files)} files")
print(f"\nSuggested related queries:")
print("\nSuggested related queries:")
for suggestion in suggestions:
print(f" - {suggestion}")

# Directory grouping
print(f"\nFiles grouped by directory:")
print("\nFiles grouped by directory:")
dir_groups = suggester.suggest_by_directory(matched_files)
for dir_name, files in dir_groups.items():
print(f" {dir_name}:")
Expand Down
3 changes: 1 addition & 2 deletions src/dir2md/spicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Dict, List, Tuple
import subprocess
import shutil
import re
from pathlib import Path

SPICY_LEVELS = ["ok", "warn", "risk", "high", "critical"]
Expand Down Expand Up @@ -94,7 +93,7 @@ def bump(level: str, delta: int, category: str, message: str, suggestion: str, f
pass # absolute or outside root

bump("critical", 50, "phantom_code", f"Phantom Code Detected: {msg}", "Remove unused code (Structural Atrophy)", file=rel_path, line=lnum)
except Exception as e:
except Exception:
# Silent fail for implicit check, or warn if verbose
pass

Expand Down