
CodexandClaude Opus 4.7
19e347e6c1
拆分 fudai_filter (1090 → 3 个子模块 + 24 行 shim)
把 douyin/fudai/core/fudai_filter.py 按职责拆成
douyin/fudai/core/fudai_filter_pkg/ 子包:
- helpers (126) 小工具:_is_short_countdown_text / check_contain / is_watch_task_fudai
- should_skip (483) should_skip_fudai_by_config 配置筛选总决策
- join_decision (524) basic_join_decision 最终参与决策
原文件改为 24 行 re-export shim,5 个公共符号全部保留。
- check_contain 16 处外部引用
- should_skip_fudai_by_config 14 处外部引用
- is_watch_task_fudai 10 处外部引用
- basic_join_decision 7 处外部引用
- _is_short_countdown_text 5 处外部引用
全部不需修改。
子包名 fudai_filter_pkg 是为了避免与同目录下的 shim 文件 fudai_filter.py
循环 import(同名包 vs 模块在 Python 中不能并存)。
回归:
- 4 个新文件 + shim compileall 通过
- pytest 353 passed / 1 skipped(test_filter_logging 29 用例全过)
- 旧 import 路径与新子包路径返回同一函数对象
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 16:47:45 +08:00
..
2026-05-21 16:47:45 +08:00
2026-01-02 23:57:03 +08:00
2026-05-21 09:49:38 +08:00
2026-05-21 08:46:11 +08:00
2026-05-21 12:06:23 +08:00
2026-05-20 19:18:34 +08:00