ci: add ruff lint check for unused imports and variables

Add CI step to detect unused imports (F401) and unused variables (F841)
with ruff. Clean up existing violations:

- Remove unused Consolidator import in agent/__init__.py
- Remove unused re import in agent/loop.py
- Remove unused Path import in channels/feishu.py
- Remove unused ContentRepositoryConfigError import in channels/matrix.py
- Remove unused field and CommandHandler imports in channels/telegram.py
- Remove unused exception variable in channels/weixin.py
This commit is contained in:
Jiajun Xie
2026-04-07 13:30:49 +08:00
committed by Xubin Ren
parent f4904c4bdf
commit 5ee96721f7
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -484,7 +484,7 @@ class WeixinChannel(BaseChannel):
except httpx.TimeoutException:
# Normal for long-poll, just retry
continue
except Exception as e:
except Exception:
if not self._running:
break
consecutive_failures += 1