-
Notifications
You must be signed in to change notification settings - Fork 285
Description
Pre-submission checklist | 提交前检查
- I have searched existing issues and this hasn't been mentioned before | 我已搜索现有问题,确认此问题尚未被提及
- I have read the project documentation and confirmed this issue doesn't already exist | 我已阅读项目文档并确认此问题尚未存在
- This issue is specific to MemOS and not a general software issue | 该问题是针对 MemOS 的,而不是一般软件问题
Bug Description | 问题描述
在学习代码时看到很多引用的 key 都没在.env.example 配置试样文件里写上. 我觉得很不友好.
比如, 我期望只要代码里能够配置的 key 都请写在配置示例里
@staticmethod def get_mysql_config() -> dict[str, Any]: """Get MySQL configuration.""" return { "host": os.getenv("MYSQL_HOST", "localhost"), "port": int(os.getenv("MYSQL_PORT", "3306")), "username": os.getenv("MYSQL_USERNAME", "root"), "password": os.getenv("MYSQL_PASSWORD", "12345678"), "database": os.getenv("MYSQL_DATABASE", "memos_users"), "charset": os.getenv("MYSQL_CHARSET", "utf8mb4"), }
How to Reproduce | 如何重现
在学习代码时看到很多引用的 key 都没在.env.example 配置试样文件里写上. 我觉得很不友好.
比如, 我期望只要代码里能够配置的 key 都请写在配置示例里
@staticmethod def get_mysql_config() -> dict[str, Any]: """Get MySQL configuration.""" return { "host": os.getenv("MYSQL_HOST", "localhost"), "port": int(os.getenv("MYSQL_PORT", "3306")), "username": os.getenv("MYSQL_USERNAME", "root"), "password": os.getenv("MYSQL_PASSWORD", "12345678"), "database": os.getenv("MYSQL_DATABASE", "memos_users"), "charset": os.getenv("MYSQL_CHARSET", "utf8mb4"), }
Environment | 环境信息
在学习代码时看到很多引用的 key 都没在.env.example 配置试样文件里写上. 我觉得很不友好.
比如, 我期望只要代码里能够配置的 key 都请写在配置示例里
@staticmethod def get_mysql_config() -> dict[str, Any]: """Get MySQL configuration.""" return { "host": os.getenv("MYSQL_HOST", "localhost"), "port": int(os.getenv("MYSQL_PORT", "3306")), "username": os.getenv("MYSQL_USERNAME", "root"), "password": os.getenv("MYSQL_PASSWORD", "12345678"), "database": os.getenv("MYSQL_DATABASE", "memos_users"), "charset": os.getenv("MYSQL_CHARSET", "utf8mb4"), }
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿
- I'm willing to implement this myself | 我愿意自己解决
- I would like someone else to implement this | 我希望其他人来解决