gapfill G1: remove 5 ruff F401 unused imports (3 unused os in production files, 2 in tests); no assert lines changed, ruff all cloud now 0

This commit is contained in:
host committed 2026-11-04 09:03:39 +00:00
1 parent 055da3c2dd
commit 5ca642c86e
5 files changed
-6

No files matched your search

-1
View File
@@ -74,7 +74,6 @@ stopping at the first.
"""
import ast
import os
from pathlib import Path
FOUNDATION_MODULES = frozenset({"db", "models", "queue", "logging_config"})
-1
View File
@@ -32,7 +32,6 @@
与 full_auto.audit_record 的 ts 同口径。
"""
import os
import time
import uuid
-1
View File
@@ -131,7 +131,6 @@ import。DB 助手函数只用 ? 占位符,与 peer_messages 同款写法。
"""
import json
import os
import re
import time
import uuid
-2
View File
@@ -13,14 +13,12 @@ import unittest
from pathlib import Path
try:
from cloud import websearch as _ws
from cloud.websearch import (
CODE_SEARCH_DOMAINS, WebSearchError, _is_code_domain,
_normalize_allowed_hosts, search)
from cloud.websearch_mcp import handle_request
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from cloud import websearch as _ws
from cloud.websearch import (
CODE_SEARCH_DOMAINS, WebSearchError, _is_code_domain,
_normalize_allowed_hosts, search)
@@ -7,7 +7,6 @@ an error string or a tool result would be caught by assertion.
"""
import json
import os
import socket
import sys
import unittest