Files
douyin_guaji-main/.gitignore
T
CodexandClaude Opus 4.7 71f3653354 补回上次合并丢失的关键路径修复 + .gitignore 补强 + 依赖版本对齐
上次冲突解决时跳过了 982f57e (P0 清理) 和 b6ae970 (路径修复) 两个 commit,
本提交补回其中影响运行时正确性和文档一致性的 7 处。

E. 路径错位修复
  - douyin/core/douyin_fudai.py: _reservations_state_path 与 room_pos_map
    状态目录改为优先调用 path_config.get_reservations_path()
  - douyin/core/path_config.py: get_reservations_path 注释明确"实际位置 + 写入方"
  - gui/components/mapping_utils.py: 删除错误兜底 douyin/state/reservations.json
  - gui/components/mapping_table.py: 同步删除 douyin/state/room_pos_map.json 错误兜底
  - gui/web_gui.py: get_reservations() 内的兜底由 douyin/state/ 修正为 douyin/core/state/
  - bin/run_cli.py: 移除对已删空文件 douyin_reservation_ops.py 的 shim 加载
  - douyin/reservation/douyin_reservation_ops.py: 删除 0 字节空文件

F. .gitignore 补强
  - 新增 *.bak_* 拦截带日期后缀的备份命名(修复 *.bak 命中失败的场景)

G. 依赖版本对齐
  - requirements-minimal.txt: paddleocr/paddlepaddle 改为 >=3.0.0,与 requirements.txt 一致
  - README.md: 安装指引中 paddlepaddle==2.5.2 改为 >=3.0.0

回归:全量 .py compileall 通过;7 项断言(path_config 路径、douyin_fudai 切换、
3 处兜底已清、shim 已移除、空文件已删、.gitignore 补强、版本对齐)全部 PASS;
test_filter_logging / check_web_gui_config_sync 通过。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 10:18:17 +08:00

147 lines
1.8 KiB
Plaintext

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# Python build artifacts
build/
dist/
downloads/
eggs/
.eggs/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# Virtual environments
.venv/
venv/
env/
ENV/
.env
.env/
.env.*
!.env.example
# Python tooling caches
.pytest_cache/
.mypy_cache/
.ruff_cache/
.pyre/
.pytype/
.tox/
.nox/
.coverage
.coverage.*
coverage.xml
htmlcov/
pip-wheel-metadata/
# Type check / lint reports
pylint_report.txt
pyright_report.txt
*.report
*.lint
# Logs and runtime traces
logs/
*.log
*.log.*
*.trace
*.pid
.web_gui_pid
git_lsremote_trace.txt
log_filter_result.txt
time_analysis_result.txt
# Local runtime state and generated caches
state/
pic/
screenshots/
captures/
tmp/
temp/
.tmp/
*.tmp
*.temp
*.cache
*.sqlite
*.sqlite3
*.db
*.db-journal
*.db-shm
*.db-wal
*.jsonl
.stats_test_cache.json
.web_stats_cache.json
# Local configuration and backups
config/*.json
!config/README.md
*.bak
*.bak_*
*.backup
*.orig
*.swp
*.swo
*~
# Generated tool reports and samples
tools/coords_report*.csv
tools/*_report*.csv
tools/*_report*.csv.gz
tools/*.csv
tools/ocr_failures*
tools/ocr_failures/
tools/samples/
tools/*.zip
tools/*.tar.gz
tools/*.bundle
# Project-specific generated state
douyin/core/state/reservations.json
douyin/core/state/room_pos_map.csv
douyin/core/state/room_pos_map.json
douyin/core/state/room_pos_map.md
state/high_value_rooms.json
# Archives and bundles
*.zip
*.tar.gz
*.tgz
*.rar
*.7z
*.bundle
# Node / frontend caches
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.parcel-cache/
.next/
.vite/
# IDE and editor files
.vscode/
.idea/
.cursor/
.specstory/
*.suo
*.user
*.userosscache
*.sln.docstates
# OS files
.DS_Store
Thumbs.db
ehthumbs.db
Desktop.ini