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

4
.gitignore vendored
View File

@ -1,5 +1,6 @@
.dodsrc .dodsrc
__pycache__/ __pycache__/
powershell/
data/ data/
*.pdf *.pdf
*.doc *.doc
@ -24,4 +25,5 @@ data/
*.zip *.zip
*.7z *.7z
*.tar* *.tar*
*.rar *.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: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python=3.12
- dask - dask
- earthaccess - earthaccess
- fiona - fiona
@ -19,14 +20,14 @@ dependencies:
- odc-stac - odc-stac
- pyresample - pyresample
- pystac-client - pystac-client
- python=3.12 - planetary-computer
- rasterio - rasterio
- ray-default - ray-default
- rioxarray - rioxarray
- scikit-image - scikit-image
- pystac-client
- seaborn - seaborn
- spectral - spectral
- rich
- selenium - selenium
- firefox - firefox
- geckodriver - geckodriver

Binary file not shown.