chore: migrate to modernized package management and unify lint/format/test toolchain#1
Merged
Merged
Conversation
详细介绍 pdf-pilot 的功能、安装方式、CLI 和 Python API 使用方法,以及引擎自动选择策略。
- 添加 .python-version 文件指定 Python 3.10 - 在 .gitignore 中忽略 .coverage 文件 - 添加 pre-commit 配置以在提交前自动运行 ruff 格式化和检查 - 更新 pyproject.toml 开发依赖,添加 pytest-cov 和 pre-commit,并配置 ruff 格式化规则 - 更新 GitHub Actions 工作流以使用 uv 进行依赖管理和构建 - 统一代码库的代码风格,包括格式化长行、调整导入顺序、添加空行等 - 更新 CONTRIBUTING.md 文档以反映新的 uv 工作流程
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.
Changes
Package Management: setuptools + pip → uv
uv.locklocking 169 dependencies to ensure CI reproducibility.python-version(Python 3.10)astral-sh/setup-uv+uv sync --extra dev/uv buildCONTRIBUTING.mdupdated with uv commandsToolchain Standardization
ruff format(replacing black/isort, same tool as lint).pre-commit-config.yaml(ruff + ruff-format hooks)pytest-covincluded as dev dependency, no longer manually installed in CIruff format)Fixes
.coverageto.gitignore(pytest-cov runtime data file)self_test.py(F841)变更内容
包管理:setuptools + pip → uv
uv.lock锁定 169 个依赖,确保 CI 可重现.python-version(Python 3.10)astral-sh/setup-uv+uv sync --extra dev/uv buildCONTRIBUTING.md更新为 uv 命令工具链标准化
ruff format(取代 black/isort,与 lint 同工具).pre-commit-config.yaml(ruff + ruff-format hooks)pytest-cov纳入 dev 依赖,不再在 CI 中手动安装ruff format)修复
.gitignore添加.coverage(pytest-cov 运行时数据文件)self_test.py修复 2 处未使用变量(F841)