chore: 更新开发环境配置与依赖项

- 更新 .gitignore 以忽略 powershell/ 目录和 .env* 文件
- 在 environment.yml 中调整依赖项顺序,添加 planetary-computer 和 rich,并固定 python 版本为 3.12
- 新增 .vscode 配置文件,包含推荐的扩展和编辑器设置,以统一开发环境
This commit is contained in:
谢泓 2026-04-13 12:07:05 +08:00
parent fdae8be777
commit 2988ca0a53
5 changed files with 43 additions and 3 deletions

2
.gitignore vendored
View File

@ -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
View 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
View 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/**"
]
}

View File

@ -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.