chore(config): 添加环境变量示例及.gitignore更新

- 新增 .env.example,包含 Tushare API、钉钉机器人和PostgreSQL数据库配置模板
- 更新.gitignore,忽略本地配置文件如 .env.local 和 config_local.py
- 添加对报表文件命名规则的支持,保留示例文件不忽略
- 删除废弃的 chart.py 及相关图表模块代码
- 新增 config/settings.py,实现从环境变量读取配置的统一接口
- 设置数据目录及缓存目录,确保目录存在,提高配置管理规范性
This commit is contained in:
2026-03-18 23:33:40 +08:00
parent 7c93be4b41
commit 988c2335fb
39 changed files with 2983 additions and 1011 deletions

12
.gitignore vendored
View File

@@ -162,9 +162,11 @@ temp/
# API keys and secrets
.env
.env.local
config.ini
secrets.json
api_keys.txt
config_local.py
# Database files
*.db
@@ -187,4 +189,12 @@ data_cache/
*.jpeg
*.gif
*.svg
*.csv
# Report files (keep examples)
report*.csv
report*.html
report*.png
!example_*.csv
!example_*.html
!example_*.png