diff --git a/.gitignore b/.gitignore index 77975bd..fa7a391 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .dodsrc __pycache__/ +powershell/ data/ *.pdf *.doc @@ -24,4 +25,5 @@ data/ *.zip *.7z *.tar* -*.rar \ No newline at end of file +*.rar +.env* \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..2ae50c3 --- /dev/null +++ b/.vscode/extensions.json @@ -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 类型检查工具 + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5563b1f --- /dev/null +++ b/.vscode/settings.json @@ -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/**" + ] +} \ No newline at end of file diff --git a/setup/environment.yml b/setup/environment.yml index b8b3601..09f47dd 100644 --- a/setup/environment.yml +++ b/setup/environment.yml @@ -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 diff --git a/setup/openearth.yml b/setup/openearth.yml index 36ce601..202bc08 100644 Binary files a/setup/openearth.yml and b/setup/openearth.yml differ