feat: 改进配置加载逻辑并更新项目配置

当配置文件不存在时自动生成示例配置
添加pyproject.toml作为项目构建配置
更新.gitignore忽略更多文件类型
删除不再使用的反向WebSocket示例文件
This commit is contained in:
2026-03-23 20:55:41 +08:00
parent cc2f8d059a
commit efc9a397bb
4 changed files with 135 additions and 63 deletions

28
.gitignore vendored
View File

@@ -115,7 +115,7 @@ env/
venv/
ENV/
env.bak/
venv.bak/
venv.bak()
# Spyder project settings
.spyderproject
@@ -138,6 +138,9 @@ dmypy.json
# pytype static type analyzer
.pytype/
# Cython
*.c
# End of https://www.toptal.com/developers/gitignore/api/python
# Build artifacts
@@ -146,4 +149,27 @@ build/
# Scratch files
scratch_files/
# Sensitive files (should never be committed)
config.toml
config.example.toml
ca/*
*.pem
*.key
# Data directory (may contain sensitive data)
/core/data/*
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Logs
logs/
*.log