Skip to content

feat: use .env file for cross-platform env config#62

Open
jayshenn wants to merge 1 commit intoSebastienZh:mainfrom
jayshenn:feat/dotenv-cross-platform
Open

feat: use .env file for cross-platform env config#62
jayshenn wants to merge 1 commit intoSebastienZh:mainfrom
jayshenn:feat/dotenv-cross-platform

Conversation

@jayshenn
Copy link
Copy Markdown

改动内容

  • 新增 .env.example 模板文件,列出所需环境变量
  • 添加 python-dotenv 依赖,fetch_kline.pygemini_review.py 启动时自动加载 .env
  • 更新 README 环境变量配置说明,统一为 .env 方式
  • .gitignore 添加 !.env.example 例外规则,确保模板文件可被追踪

原因

原来的配置方式需要手动设置系统环境变量,且 Windows / macOS 命令不同,对跨平台用户不够友好。改用 .env 文件后,所有平台操作一致,只需 cp .env.example .env 填入 Key 即可,.env 已在 .gitignore 中不会泄露到版本库。

🤖 Generated with Claude Code

- 新增 .env.example 模板文件
- 添加 python-dotenv 依赖,两个入口模块启动时自动加载 .env
- 更新 README 环境变量配置说明,跨平台统一为 .env 方式
- .gitignore 添加 !.env.example 例外规则确保模板可追踪

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant