Conversation
…date README and configuration scripts
…uide, configuration details, and deployment instructions
…te README instructions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
本次更新将项目模板迁移到现代化的工具链,提升开发体验和维护效率。
主要变更
1. 包管理器迁移
uv作为主要包管理器(保留 poetry 兼容)[project]标准配置2. 依赖和工具更新
interrogate工具用于文档覆盖率检查(要求 80%)nbstripout默认保留 notebook 输出(添加--keep-output参数)tox支持,自动测试多 Python 版本(3.10-3.13)3. 测试改进
tests/test_configure_project.py)make tox- 测试所有 Python 版本make tox-e pyversion=<version>- 测试特定版本make tox-list- 查看可用环境deps = -e {toxinidir}[dev]自动安装所有依赖4. 文档系统升级
5. Pre-commit 更新
--keep-output参数6. CI/CD 更新
7. 配置和文档
新增文件
mkdocs.yml- MkDocs 配置docs/index.md- 文档首页docs/doc/*.md- 5 个详细文档章节tests/test_configure_project.py- 配置脚本测试.github/workflows/docs.yml- 文档部署工作流改进文件
pyproject.toml- 添加 [project] 配置,更新依赖tox.ini- 使用自动依赖安装,支持 Python 3.10-3.13makefile- 添加 tox 和文档相关命令README.md- 完善文档说明scripts/configure_project.py- 添加完整文档字符串.pre-commit-config.yaml- 更新 hooks 配置使用示例
向后兼容性
测试状态
文档
在线文档:https://songshgeo.github.io/project_template/
注意事项