douyin-downloader/cli
jiji262 5144bd3dec style: 统一 ruff format + 清理 CLI-only lint 债 (41 errors → 0)
跟 desktop 保持一致, 统一 ruff format + ruff check 零错误基线。

改动:

1. Shared 文件 (27 个) 从 desktop sync, 继承 desktop 的 format。

2. CLI-only 文件 (~22 个) 直接跑 ruff format . , 另修 4 个手动问题:
   - utils/abogus.py F821: 循环内 `value_e` 递推 pattern, 函数入口
     预置 0 让静态分析安心, 等价于行为不变。
   - utils/xbogus.py E741: _encoding_conversion 单字母参数 `l` 是
     port 自上游 JS xbogus, 加 `# noqa: E741` 保留。
   - core/transcript_manager.py F841: 删除未用的 `text = str(...).strip()`,
     `_write_outputs` 自己 extract。
   - run.py E402: `import os` 从 sys.path 调整之后移到顶部。

3. CLI 另还有 37 个自动修的 I001 (imports 排序) / F401 (unused
   import) / F811 (重复 import) / W292 (EOF newline), ruff --fix 搞定。

影响:
- 98 个 .py 文件, 变更 ~2000 行 (绝大多数是 format)
- 0 业务逻辑改动
- 0 API 改动

验证:
- pytest tests/ — 268 passed + 1 skipped
- ruff check . — All checks passed (之前是 41 errors)
- ruff format --check . — 98 files already formatted

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
2026-05-12 13:03:12 +08:00
..
__init__.py style: 统一 ruff format + 清理 CLI-only lint 债 (41 errors → 0) 2026-05-12 13:03:12 +08:00
AGENTS.md update 2026-04-12 09:42:17 +08:00
main.py style: 统一 ruff format + 清理 CLI-only lint 债 (41 errors → 0) 2026-05-12 13:03:12 +08:00
progress_display.py style: 统一 ruff format + 清理 CLI-only lint 债 (41 errors → 0) 2026-05-12 13:03:12 +08:00
whisper_transcribe.py style: 统一 ruff format + 清理 CLI-only lint 债 (41 errors → 0) 2026-05-12 13:03:12 +08:00