chore: 更新开发环境配置与依赖项
- 更新 .gitignore 以忽略 powershell/ 目录和 .env* 文件 - 在 environment.yml 中调整依赖项顺序,添加 planetary-computer 和 rich,并固定 python 版本为 3.12 - 新增 .vscode 配置文件,包含推荐的扩展和编辑器设置,以统一开发环境
This commit is contained in:
parent
fdae8be777
commit
2988ca0a53
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
.dodsrc
|
||||
__pycache__/
|
||||
powershell/
|
||||
data/
|
||||
*.pdf
|
||||
*.doc
|
||||
@ -25,3 +26,4 @@ data/
|
||||
*.7z
|
||||
*.tar*
|
||||
*.rar
|
||||
.env*
|
||||
12
.vscode/extensions.json
vendored
Normal file
12
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
// 推荐此项目所需的 VS Code 扩展 (如果尚未安装)
|
||||
"recommendations": [
|
||||
"vscode-icons-team.vscode-icons", // 文件图标主题
|
||||
"streetsidesoftware.code-spell-checker", // 拼写检查工具
|
||||
"esbenp.prettier-vscode", // Prettier 代码格式化工具
|
||||
"dbaeumer.vscode-eslint", // ESLint 代码检查工具
|
||||
"ms-python.python", // Python 语言支持
|
||||
"charliermarsh.ruff", // Ruff 代码检查和格式化工具
|
||||
"detachhead.BasedPyright", // Python 类型检查工具
|
||||
]
|
||||
}
|
||||
25
.vscode/settings.json
vendored
Normal file
25
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
// 为 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/**"
|
||||
]
|
||||
}
|
||||
@ -2,6 +2,7 @@ name: openearth
|
||||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.12
|
||||
- dask
|
||||
- earthaccess
|
||||
- fiona
|
||||
@ -19,14 +20,14 @@ dependencies:
|
||||
- odc-stac
|
||||
- pyresample
|
||||
- pystac-client
|
||||
- python=3.12
|
||||
- planetary-computer
|
||||
- rasterio
|
||||
- ray-default
|
||||
- rioxarray
|
||||
- scikit-image
|
||||
- pystac-client
|
||||
- seaborn
|
||||
- spectral
|
||||
- rich
|
||||
- selenium
|
||||
- firefox
|
||||
- geckodriver
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user