Skip to content

⬆️ deps: bump Python dev dependencies - #93

Merged
SigureMo merged 2 commits into
mainfrom
renovate/python-dev-dependencies
Oct 27, 2026
Merged

SigureMo merged 2 commits into
mainfrom
renovate/python-dev-dependencies

Conversation

@renovate

@renovate renovate Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
ruff (source, changelog) >=0.17.1 → >=0.17.2 age confidence
ty (changelog) >=0.0.89 → >=0.0.92 age confidence

Release Notes

astral-sh/ruff (ruff)

v0.17.2

Compare Source

Released on 2026-10-22.

Preview features
  • [complexity] Add unnecessary-regular-expression-compile (#​25533)
Bug fixes
  • Avoid syntax errors for type variables with starred constraints (UP040, UP046, UP047, RUF053) (#​28362)
  • [pydocstyle] Treat backslash-escaped *args and **kwargs as documented (D417) (#​29536)
  • [pylint] Avoid false positive on starred elements (PLE0643) (#​29483)
  • [pylint] Mark fixes unsafe when deleting comments (PLR5501, PLW0120) (#​29414)
  • [pyupgrade] Mark fix unsafe when deleting comments (UP035) (#​29413)
Performance
  • Avoid intermediate names in lint name resolution (#​29506)
  • Prefilter bidirectional Unicode checks by UTF-8 leading bytes (#​29561)
  • Share postfix parsing and reduce expression copies (#​29480)
Configuration
  • [pylint] Add a configurable allowlist for magic-value-comparison (PLR2004) (#​18961)
Documentation
  • Clarify documentation and correct stale guidance (#​29374)
  • [pyupgrade] Remove mentions of variance related to fix safety (UP040, UP047) (#​29592)
Contributors
astral-sh/ty (ty)

v0.0.92

Compare Source

Released on 2026-10-26.

Core type checking
  • Infer the types of Django model primary keys (pk and the automatic id) with django-types (#​29642)
  • Infer Django foreign key <field>_id types from the referenced field (#​29664)
  • Recognize get_<field>_display() on Django model fields with choices (#​29651)
  • Recognize get_next_by_<field>() and get_previous_by_<field>() on non-nullable Django date and datetime fields (#​29653)
Bug fixes
  • Preserve generic callback parameters when forwarding overloaded functions through a ParamSpec (#​29649)
  • Check implicit and PEP 613 type aliases as type expressions at their definitions (#​29200)
CLI
  • Emit SARIF reports with ty check --output-format sarif (#​29635)
LSP server
  • Skip scanning for scripts at startup and reload when uv script environments are disabled (#​29697)
Diagnostic improvements
  • Abbreviate large nested tuple types in diagnostics and inlay hints (#​29691)
  • Point to the expression that makes a type alias invalid, even when the alias is imported (#​29654)
Performance
  • Avoid redundant work when checking inherited attributes (#​29699)
  • Check for instance storage without inferring method assignments (#​29709)
  • Collect receiver annotations once per class (#​29703)
  • Check non-recursive protocol members before recursive ones (#​29542)
  • Reuse class member lookups when checking overrides (#​29716)
  • Reuse each generic context's inferable type variables (#​29700)
  • Short-circuit comparisons involving top and bottom callable signatures (#​29537)
  • Skip inferred writes when a declaration determines an instance member (#​29702)
  • Skip method signature inference for concrete decorator results (#​29708)
Contributors

v0.0.91

Compare Source

Released on 2026-10-22.

Bug fixes
  • Improve generics solving when an intersection is passed into a generic call to prefer solving the call to a more precise type when it is safe to do so (#​29578)
  • Fix recursive type materialization (#​29532)
  • Infer return intersections from correlated call specializations (#​28303)
  • Preserve Self when checking universal protocols (#​29207)
  • Fix stack overflows involving recursive descriptor setter types (#​29148)
  • Preserve the namespace-package fallback in module discovery when the namespace-package fallback is obscured by a partial stub package (#​29559)
  • Report all missing @override decorators together (#​29557)
  • Fix false-positive invalid-argument-type diagnostics when inferring constrained type variables from callbacks that return an invariant generic with a gradual type argument (#​29577)
Performance improvements
  • Compare protocol receiver restrictions before binding (#​29443)
LSP server
  • Avoid cancelling requests for unrelated file changes (#​29604)
Core type checking
  • Generics solving: check for unsatisfiable bodies before existentially quantifying (#​29504)
  • Liskov diagnostics: Check inherited attribute conflicts (#​28559)
  • Return type inference: eneralize nested types in inferred return types (#​29488)
Contributors

v0.0.90

Compare Source

Released on 2026-10-20.

Bug fixes
  • Allow subclasses to restore hashability (#​29471)
  • Avoid crashes when negating recursive aliases (#​29429)
  • Avoid stack overflow for recursive descriptor setter checks (#​29467)
  • Defer constructor type variable defaults (#​29469)
  • Preserve bound receivers for strict signature checks (#​29396)
  • Preserve read types for dynamic attributes (#​29461)
  • Reject runtime_checkable on non-protocol classes (#​29460)
  • Validate TypeAliasType keyword arguments (#​29466)
LSP server
Other changes
  • Adopt stable macOS signing identifiers (#​4743)
  • Avoid inserting inlay hints containing stub-only types (#​29477)
  • Filter incompatible union members during union inference (#​29344)
  • Infer ParamSpecs from call-wide constraints (#​28828)
  • Mitigate pauses from clearing cached ASTs in more language server operations (#​29232)
  • Report read-only keys when deleting, popping, or defaulting TypedDict items (#​29441)
  • Support uv's nested module ownership metadata (#​29436)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/python-dev-dependencies branch from babca9d to 2668c20 Compare October 26, 2026 17:21
@renovate

renovate Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pyproject.toml
Artifact update for ruff resolved to version 0.17.3, which is a pending version that has not yet passed the Minimum Release Age threshold.
Renovate was attempting to update to 0.17.2
This is (likely) not a bug in Renovate, but due to the way your project pins dependencies, _and_ how Renovate calls your package manager to update them.
Until Renovate supports specifying an exact update to your package manager (https://github.com/renovatebot/renovate/issues/41624), it is recommended to directly pin your dependencies (with `rangeStrategy=pin` for apps, or `rangeStrategy=widen` for libraries)
See also: https://docs.renovatebot.com/dependency-pinning/

@renovate
renovate Bot force-pushed the renovate/python-dev-dependencies branch from 2668c20 to 835f1cc Compare October 27, 2026 06:36
@SigureMo

Copy link
Copy Markdown
Contributor

@copilot 处理一下 CI 报错

Co-authored-by: SigureMo <38436475+SigureMo@users.noreply.github.com>

Copilot AI commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

@copilot 处理一下 CI 报错

已在 50b5072 修复。

这个失败和 ruff / ty 的升级无关(Lint and Format 是绿的),原因是 ubuntu-latest 现在解析为 ubuntu-26.04(bash 5.3.9):bash 5.3 下 cd "" 会报 cd: null directory 并返回 1(5.2 则静默成功)。test_extension_entrypoint_requires_uv 用 PATH=/nonexistent 运行,dirname 不存在,gh-llm 里的 SCRIPT_DIR=$(cd "$(dirname ...)") 在 set -e 下提前退出,没走到 uv is required 的检查。

改动:把 command -v uv 检查(只用 shell 内建命令)移到计算 SCRIPT_DIR 之前,测试未改动。

在真实的 ubuntu:26.04 镜像里验证过:原脚本能复现与 CI 完全一致的报错;修复后 pytest --reruns 3 --reruns-delay 1 为 169 passed,ty check --error-on-warning、ruff check、ruff format --check 均通过。

新提交触发的 workflow 目前是 action_required 状态,需要你在 Actions 页面批准后才会运行。#92(只升级 setup-uv)也是同样的失败,这个合入 main 后 rebase 即可。

Copilot AI requested a review from SigureMo October 27, 2026 19:09
@SigureMo
SigureMo merged commit f5280d9 into main Oct 27, 2026
4 checks passed
@SigureMo
SigureMo deleted the renovate/python-dev-dependencies branch October 27, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants