feat: use .env file for cross-platform env config#62
Open
jayshenn wants to merge 1 commit intoSebastienZh:mainfrom
Open
feat: use .env file for cross-platform env config#62jayshenn wants to merge 1 commit intoSebastienZh:mainfrom
jayshenn wants to merge 1 commit intoSebastienZh:mainfrom
Conversation
- 新增 .env.example 模板文件 - 添加 python-dotenv 依赖,两个入口模块启动时自动加载 .env - 更新 README 环境变量配置说明,跨平台统一为 .env 方式 - .gitignore 添加 !.env.example 例外规则确保模板可追踪 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
.env.example模板文件,列出所需环境变量python-dotenv依赖,fetch_kline.py和gemini_review.py启动时自动加载.env.env方式.gitignore添加!.env.example例外规则,确保模板文件可被追踪原因
原来的配置方式需要手动设置系统环境变量,且 Windows / macOS 命令不同,对跨平台用户不够友好。改用
.env文件后,所有平台操作一致,只需cp .env.example .env填入 Key 即可,.env已在.gitignore中不会泄露到版本库。🤖 Generated with Claude Code