mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
d71c6e8568
Suppress DeprecationWarning from aiosqlite and LogfireNotConfiguredWarning
that were cluttering CLI output.
The key fix is applying warnings.filterwarnings("ignore") AFTER all imports
in main.py, because authlib (imported via cloud commands) adds a
DeprecationWarning filter that overrides earlier suppressions.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
28 lines
667 B
Python
28 lines
667 B
Python
"""Main CLI entry point for basic-memory.""" # pragma: no cover
|
|
|
|
from basic_memory.cli.app import app # pragma: no cover
|
|
|
|
# Register commands
|
|
from basic_memory.cli.commands import ( # noqa: F401 # pragma: no cover
|
|
cloud,
|
|
db,
|
|
import_chatgpt,
|
|
import_claude_conversations,
|
|
import_claude_projects,
|
|
import_memory_json,
|
|
mcp,
|
|
project,
|
|
status,
|
|
tool,
|
|
)
|
|
|
|
# Re-apply warning filter AFTER all imports
|
|
# (authlib adds a DeprecationWarning filter that overrides ours)
|
|
import warnings # pragma: no cover
|
|
|
|
warnings.filterwarnings("ignore") # pragma: no cover
|
|
|
|
if __name__ == "__main__": # pragma: no cover
|
|
# start the app
|
|
app()
|