From 24c68d4053736b473d5afaaae6caf033d29c3d95 Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Wed, 25 Feb 2026 21:34:45 -0800 Subject: [PATCH] linter --- lib/crewai/src/crewai/cli/memory_tui.py | 8 ++++---- lib/crewai/src/crewai/memory/storage/lancedb_storage.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/crewai/src/crewai/cli/memory_tui.py b/lib/crewai/src/crewai/cli/memory_tui.py index 3310786e7..9dd91a42c 100644 --- a/lib/crewai/src/crewai/cli/memory_tui.py +++ b/lib/crewai/src/crewai/cli/memory_tui.py @@ -290,16 +290,16 @@ class MemoryTUI(App[None]): if self._memory is None: panel.update(self._init_error or "No memory loaded.") return - _DISPLAY_LIMIT = 1000 + display_limit = 1000 info = self._memory.info(path) self._last_scope_info = info - self._entries = self._memory.list_records(scope=path, limit=_DISPLAY_LIMIT) + self._entries = self._memory.list_records(scope=path, limit=display_limit) panel.update(_format_scope_info(info)) panel.border_title = "Detail" entry_list = self.query_one("#entry-list", OptionList) - capped = info.record_count > _DISPLAY_LIMIT + capped = info.record_count > display_limit count_label = ( - f"Entries (showing {_DISPLAY_LIMIT} of {info.record_count} — display limit)" + f"Entries (showing {display_limit} of {info.record_count} — display limit)" if capped else f"Entries ({len(self._entries)})" ) diff --git a/lib/crewai/src/crewai/memory/storage/lancedb_storage.py b/lib/crewai/src/crewai/memory/storage/lancedb_storage.py index e8ca283ce..e514edcac 100644 --- a/lib/crewai/src/crewai/memory/storage/lancedb_storage.py +++ b/lib/crewai/src/crewai/memory/storage/lancedb_storage.py @@ -93,7 +93,7 @@ class LanceDBStorage: soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE) if soft < 4096: resource.setrlimit(resource.RLIMIT_NOFILE, (min(hard, 4096), hard)) - except Exception: + except Exception: # noqa: S110 pass # Windows or already at the max hard limit — safe to ignore self._compact_every = compact_every @@ -217,7 +217,7 @@ class LanceDBStorage: return try: self._table.create_scalar_index("scope", index_type="BTREE", replace=False) - except Exception: + except Exception: # noqa: S110 pass # index already exists, table empty, or unsupported version # ------------------------------------------------------------------