From f6943e1615267b448156cc3f7f6548d14aac386b Mon Sep 17 00:00:00 2001 From: Youssef Aitousarrah Date: Thu, 5 Feb 2026 23:46:27 -0800 Subject: [PATCH] fix: add noqa comment to prevent linter from removing scanner import The scanner import needs # noqa: F401 to prevent linters from removing it as "unused". The import is required for side effects (triggering scanner registration). Without this: - Pre-commit hook removes the import - Scanners don't register - Discovery returns 0 candidates Fix: - Added # noqa: F401 comment to scanner import - Linter will now preserve this import - Verified 8 scanners properly registered Co-Authored-By: Claude Sonnet 4.5 --- tradingagents/graph/discovery_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradingagents/graph/discovery_graph.py b/tradingagents/graph/discovery_graph.py index c44acbfe..25dcffa8 100644 --- a/tradingagents/graph/discovery_graph.py +++ b/tradingagents/graph/discovery_graph.py @@ -3,7 +3,7 @@ from typing import Any, Callable, Dict, List, Optional from langgraph.graph import END, StateGraph from tradingagents.agents.utils.agent_states import DiscoveryState -from tradingagents.dataflows.discovery import scanners # Load scanners to trigger registration +from tradingagents.dataflows.discovery import scanners # noqa: F401 # Load scanners to trigger registration from tradingagents.dataflows.discovery.scanner_registry import SCANNER_REGISTRY from tradingagents.dataflows.discovery.utils import PRIORITY_ORDER, Priority, serialize_for_log from tradingagents.tools.executor import execute_tool