Files
daily_stock_analysis/.gitignore
LouisHong 028e57e3f9 #602[PR 1]: 数据源韧性增强与代码清理 (#609)
* feat: enhance yfinance fetcher with Stooq fallback and stock mapping

- Implement _get_us_stock_quote_from_stooq for US stock data resilience
- Add stock_mapping.py for common stock code-to-name conversion
- Add unit test for Stooq fallback logic
- Part of #1

* feat: expand STOCK_NAME_MAP with major A-share stocks

* refactor: decouple stock_mapping from yfinance_fetcher (optional import)

* fix: correct Stooq fallback prev close and lint

* fix: data fetcher improvements and gitignore updates

- Prefer static stock name mapping for prefetch
- Fix gitignore to track src/data
- Document Stooq fallback prev close behavior in CHANGELOG

This combines the last three commits while excluding README.md changes.
2026-03-12 20:43:27 +08:00

80 lines
863 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 环境变量文件(包含敏感信息,禁止提交)
.env
.env.*
*.env
*.env.local
.env.*.local
# 测试文件(可能包含敏感配置)
# 仅忽略仓库根目录下的临时 test_*.py 脚本tests/ 目录下的单元测试需要纳入版本控制。
/test_*.py
!test_env.py
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# 虚拟环境
venv/
ENV/
env/
.venv/
# IDE
.idea/
.vscode/
*.swp
*.swo
*~
.cursorrules
# 数据和日志
/data/
logs/
reports/
*.db
*.sqlite
*.sqlite3
# 系统文件
.DS_Store
Thumbs.db
# 测试
.pytest_cache/
.coverage
htmlcov/
local/
run.sh
verify_*.py
# ignore claude files
.claude/
CLAUDE.md
# ignore static files
static/
/apps/dsa-desktop/dist/
/apps/dsa-desktop/node_modules/