xhong 2988ca0a53 chore: 更新开发环境配置与依赖项
- 更新 .gitignore 以忽略 powershell/ 目录和 .env* 文件
- 在 environment.yml 中调整依赖项顺序,添加 planetary-computer 和 rich,并固定 python 版本为 3.12
- 新增 .vscode 配置文件,包含推荐的扩展和编辑器设置,以统一开发环境
2026-04-13 12:07:05 +08:00

25 lines
774 B
JSON

{
// 为 Python 文件设置 Ruff 为默认格式化工具
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports.ruff": "explicit"
}
},
// 全局-编辑其他语言时保存时Ruff格式化开关
"editor.formatOnSave": false,
// 启用 Ruff 扩展的自动修复功能
"ruff.fixAll": true,
"ruff.organizeImports": true,
// 设置最大行宽
"ruff.lineLength": 88,
// 排除不需要格式化的文件或目录
"ruff.exclude": [
"**/__pycache__/**",
"**/migrations/**",
"**/node_modules/**",
"**/.git/**"
]
}