freeman
f3ad81b39e
style: apply safe ruff auto-fixes and exempt startup late imports
...
Run `ruff check app tests scripts --fix` with the configured rule set
(E4/E7/E9/F/I): import sorting (I001), f-strings without placeholders
(F541), lambda/variable/unused-import cleanups that ruff marks safe.
Nine files whose only ruff debt sits next to pre-existing pylint
import-resolution errors (lazy exports, sys.path script imports) or
whose "unused" imports are reached through attribute access by tests are
left untouched so the changed-file pylint gate and the benchmark tests
stay green; their diagnostics remain in the baseline.
app/startup/lifecycle/__init__.py and app/main.py import business
modules after cache composition, import-path and stdio setup on purpose
(the source comments document the contract), so declare E402
per-file-ignores for them instead of adding per-line noqa.
Ruff ratchet watermark drops from 498 to 100; sync the baseline fixture
and the optimization checklist figure.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
2026-10-09 13:29:09 +08:00
jxxghp
404a737047
feat(ugreen): 支持 9443 媒体库服务账号
2026-09-12 08:39:17 +08:00
jxxghp
6881ef42ec
fix(wallpaper): 修正绿联媒体类型判断
2026-09-01 20:58:23 +08:00
jxxghp
184cfc9c67
fix(wallpaper): 过滤非影视媒体库海报
2026-09-01 20:48:23 +08:00
jxxghp
b4b5f82511
refactor(modules): narrow package root exports
2026-08-29 21:19:00 +08:00
jxxghp
92e745fc97
refactor(architecture): split chain owners and close runtime boundaries
2026-08-28 22:26:19 +08:00
jxxghp
8555d0da3e
refactor: use explicit system config getter
2026-08-24 04:04:35 +08:00
jxxghp
8472bcff43
refactor: 收口 V3 分层架构与插件兼容边界
2026-08-18 13:22:02 +08:00
jxxghp
5128ae9e1e
refactor: 推进后端分层架构治理
2026-08-18 00:29:14 +08:00
jxxghp
7e851dbfa7
refactor(chain): 处理链功能域 mixin 化,清理未使用导入并根治兼容层循环导入
...
- ChainBase 拆分为 RecognitionMixin/MessageProcessingMixin/NotificationMixin
- TransferChain 拆分为 7 个功能 mixin(_mixins.py),SubscribeChain 音乐订阅域拆出 _music.py
- 斜杠命令交互四件套收敛为 InteractionChainMixin 委托,会话管理器移至 application 层,chain 层不再 re-export
- 模块基础类收敛到 app/modules/_base(notification/mediaserver 语义重命名)
- 清理 app/chain/__init__.py 24 个未使用导入,修正 49 处测试 patch 目标到实际命名空间
- 兼容层 legacy 符号不再并入 __all__,根治 schemas 初始化反向拉起 application.transfer 的循环导入
- 修复 bangumi 集数为字符串时 set_bangumi_info 抛 TypeError
- 新增重复代码等架构门禁测试;capability 清单校验排除下划线内部目录
2026-08-16 16:30:16 +08:00
InfinityPacer
24671f8f18
refactor(runtime): lazily activate host modules ( #6331 )
2026-08-16 16:07:38 +08:00
Aqr-K
8a11214a43
refactor(db): 修复异步连接池无界增长,并完成 SQLAlchemy 2.0 迁移与分层归位 ( #6320 )
2026-08-15 06:58:38 +08:00
jxxghp
369d7d6448
refactor: reorganize backend module boundaries
2026-08-14 19:53:33 +08:00
jxxghp
7b3444c366
refactor backend module architecture
2026-08-14 15:45:38 +08:00
jxxghp
8bf2f601a6
refactor(media): unify source identity and music browsing
2026-08-12 12:56:40 +08:00
jxxghp
1fc255b8a7
fix(music): complete subscription lifecycle
2026-08-10 07:21:06 +08:00
jxxghp
415ccda6a2
feat(v3): enhance music server integration with Navidrome support
2026-08-08 12:57:09 +08:00
InfinityPacer
197a09b2a4
fix(dashboard): distinguish empty media results ( #6187 )
2026-07-25 14:24:25 +08:00
jxxghp
c27678ce06
fix(ugreen): send client id during login
2026-07-15 17:38:31 +08:00
InfinityPacer
893269f8c1
fix(modules): serialize configuration reload lifecycle ( #6122 )
2026-07-15 17:28:49 +08:00
jxxghp
c54605f8ce
fix: support ugreen token_id login response
2026-07-07 20:15:19 +08:00
jxxghp
4d30dee74c
feat(mediaserver): add item count to media library details across multiple servers
2026-06-29 21:37:58 +08:00
jxxghp
9eb71c744b
feat(mediaserver): add item count retrieval for various media servers
2026-06-29 10:45:10 +08:00
jxxghp
c4d3d28491
fix: avoid blocking Ugreen startup on library preload
...
Delay Ugreen library loading until it is needed and cap poster wall pagination so a single Ugreen server cannot hang backend startup.\n\nFixes #5740
2026-05-10 12:19:36 +08:00
InfinityPacer
bedab9ab92
fix(mediaserver): fallback stale tv item ids
2026-05-09 06:54:39 +08:00
jxxghp
4b27b7bc42
重构 UgreenCrypto 模块路径至 app.modules.ugreen 并更新相关引用
2026-04-29 16:29:17 +08:00
jxxghp
6a90e2c796
fix ide warnings
2026-03-08 08:32:29 +08:00
doumao
efc68ae701
fix: 绿联接口支持可配置SSL证书校验
2026-02-28 22:55:47 +08:00
doumao
6151d8a787
perf: 使用deque优化绿联媒体库遍历队列性能
2026-02-28 22:13:54 +08:00
doumao
296261da8a
feat: 完成绿联影视接入并补齐扫描模式与统计展示
2026-02-28 21:58:35 +08:00