From 4166b53de983e33ca8e34d9a77769384985d6d65 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 3 Jul 2026 19:50:46 +0200 Subject: [PATCH] packages: ship galaxy.tool_source_store in galaxy-app; search reads config directly The packages/app tree links each galaxy subpackage explicitly and tool_source_store was never added, so the built wheel lacked the package and per-package mypy resolved its imports as Any (surfacing as 'Returning Any' in LazyToolboxSearch.search). --- lib/galaxy/tools/search/__init__.py | 4 ++-- packages/app/src/galaxy/tool_source_store | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 packages/app/src/galaxy/tool_source_store diff --git a/lib/galaxy/tools/search/__init__.py b/lib/galaxy/tools/search/__init__.py index 34297960523..53135bc9cdb 100644 --- a/lib/galaxy/tools/search/__init__.py +++ b/lib/galaxy/tools/search/__init__.py @@ -166,11 +166,11 @@ class LazyToolboxSearch(ToolBoxSearch): ToolWhooshIndex, ) - index_dir = whoosh_dir_for_store(getattr(config, "tool_search_index_dir", None), DEFAULT_STORE_NAME) + index_dir = whoosh_dir_for_store(config.tool_search_index_dir, DEFAULT_STORE_NAME) if index_dir is None: return [] searcher = ToolWhooshIndex(index_dir=index_dir, tuning=ToolSearchTuning.from_config(config)) - return searcher.search(q, limit=int(getattr(config, "tool_search_limit", 20))) + return searcher.search(q, limit=int(config.tool_search_limit)) class ToolPanelViewSearch: diff --git a/packages/app/src/galaxy/tool_source_store b/packages/app/src/galaxy/tool_source_store new file mode 120000 index 00000000000..8e71e49263b --- /dev/null +++ b/packages/app/src/galaxy/tool_source_store @@ -0,0 +1 @@ +../../../../lib/galaxy/tool_source_store \ No newline at end of file