Repository navigation
fix(deps): refresh dependencies and stabilize linting and SQLite pooling - #531
Conversation
Bumps the uv-all-updates group with 3 updates: [click](https://github.com/pallets/click), [uvicorn](https://github.com/Kludex/uvicorn) and [ruff](https://github.com/astral-sh/ruff). Updates `click` from 8.4.2 to 8.5.0 - [Release notes](https://github.com/pallets/click/releases) - [Changelog](https://github.com/pallets/click/blob/main/CHANGES.md) - [Commits](pallets/click@8.4.2...8.5.0) Updates `uvicorn` from 0.53.0 to 0.54.0 - [Release notes](https://github.com/Kludex/uvicorn/releases) - [Changelog](https://github.com/Kludex/uvicorn/blob/main/docs/release-notes.md) - [Commits](Kludex/uvicorn@0.53.0...0.54.0) Updates `ruff` from 0.16.8 to 0.16.9 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.16.8...0.16.9) --- updated-dependencies: - dependency-name: click dependency-version: 8.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: uv-all-updates - dependency-name: uvicorn dependency-version: 0.54.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: uv-all-updates - dependency-name: ruff dependency-version: 0.16.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: uv-all-updates ... Signed-off-by: dependabot[bot] <support@github.com>
评估结论本 PR 的三项升级总体合理,属于现有版本范围内的常规依赖维护;建议补齐 Ruff 版本来源的一致性后合并。未发现本 PR 引入的运行时阻断问题,也没有证据表明这是必须紧急发布的安全修复。 本次升级
建议随本 PR 处理:消除 Ruff 双重版本配置
推荐将 Ruff hooks 改为仓库 local hooks,通过 其他依赖候选SQLAlchemy 2.0.54 → 2.1.1、greenlet 3.5.5 → 3.5.6 值得跟进,可缩小锁定环境与独立发布安装之间的版本差异。已在独立环境安装这两项并禁用 uv 自动同步,完整回归 829 项通过,但出现一条
其余过期版本不等同于安全问题。本次运行时+开发依赖审计未发现已知漏洞,不建议仅为追新而批量扩展范围;保留现有 SDK pin、protobuf 6/7 范围和发布包安全下限。 验证评估基于 PR head
本次仅评估并记录建议,未修改 PR 代码或合并 PR。 |
Use the locked Ruff toolchain and upgrade SQLAlchemy/greenlet while retaining explicit in-memory connection reuse. Refs #532
|
已完成 v1.3.4 发布:
|
问题与结果
原依赖升级将 Ruff 锁定版本更新为 0.16.9,但 pre-commit 仍单独固定在 0.16.8,导致 lint 检查与开发环境版本再次漂移。同时,SQLAlchemy 2.1 对
mode=memorySQLite URI 自动选择 StaticPool 的行为发出弃用警告,未来默认变化可能影响内存数据库连接和状态。本 PR 统一 Ruff 的版本来源,并在升级 SQLAlchemy/greenlet 的同时显式保留现有内存数据库连接池行为。
变更
uv run --locked --extra dev执行检查和格式化,以 uv.lock 为单一版本来源。保留原来的自动修复、--force-exclude、串行执行及各 hook 的文件类型筛选。:memory:URL 和mode=memoryURI 显式选择StaticPool;文件数据库保留默认连接池及既有文件加固逻辑。验证
./scripts/doctor.sh完整通过:pre-commit 无自动修改、mypy(88 个源文件)、831 项测试、93.33% 覆盖率及门槛、构建和独立 wheel 安装冒烟。scripts/dependency_health.sh通过,运行时与开发依赖未发现已知漏洞。uv run --locked --extra dev ruff --version确认为 0.16.9;pre-commit validate-config、uv lock --check、git diff --check通过。最新提交
10593d0的远端 5 项检查全部通过:默认工具链(含运行时审计、wheel/sdist 安装冒烟)、Python 3.11/3.12/3.13 矩阵及 protobuf 6 兼容性检查。未执行真实 OpenCode 上游集成测试,本次没有更改上游调用或 A2A wire contract。Closes #532