Repository navigation
chore(deps-dev): update dev tooling and GitHub Actions - #433
Conversation
Update ruff to 0.17.5, the uv-development group (mypy, pyrefly, basedpyright, pytest, hypothesis, poethepoet, pytest-asyncio, coverage, tox, mutmut), virtualenv, anyio and the pinned GitHub Actions. Ruff 0.17 flags global clock patches in tests, so FallbackClock now takes its clocks as arguments. Pyrefly 1.4 cannot solve the batch type of parallel() from an untyped branch list, so _branch names its result type. Anyio 4.16 drops a pytest 9.2 deprecated import.
AI review: no P0-P2 findingsBumps the dev toolchain (ruff 0.17.5, pyrefly 1.4.1, basedpyright 1.40.2, pytest 9.2.0, tox 4.67.13 and others), the lockfile, and the SHA-pinned GitHub Actions. It also makes two small internal changes so the new tools pass: Not checked: The AI review read the diff, the code, and the PR's text; it ran no tests or builds and read nothing outside this repository.
Human review: not needed |
tkkhq
left a comment
There was a problem hiding this comment.
Verified the policy digest and action tags. Python 3.11–3.14 and the mutation gate passed.
Tracking
VOL-1837
Why
Routine dependency updates. This folds the open Dependabot updates into one change so the toolchain moves together, since several of them fail CI on their own.
Supersedes #432, #423, #416 and #410. It does not include #431 or #417; see below.
Summary
required-version), mypy 2.4.0 → 2.4.1, pyrefly 1.3.2 → 1.4.1, basedpyright 1.40.1 → 1.40.2 (including thepackage-typestox pin), pytest 9.1.1 → 9.2.0, hypothesis 6.168.3 → 6.170.15, poethepoet 0.48.0 → 0.49.0, pytest-asyncio 1.4.0 → 1.5.0, coverage 7.16.2 → 7.17.3, tox 4.64.7 → 4.67.13, mutmut 3.8.0 → 3.8.1.CallSpec2, which pytest 9.2 deprecates; withfilterwarnings = errorthe suite fails to start. Anyio 4.16 fixes the import. The lockfile was written with uv 0.12.17, the version CI pins. The Dependabot branches used a newer lock revision, whichuv sync --lockedrejected.maintainers/quality-policy.lock.jsonrecords the new ruffrequired-versionand basedpyright tox pin, and its digest is updated inscripts/check_quality_policy.py.shared-clock-mock: theFallbackClocktests patchedtime.monotonicandtime.timefor the whole process.FallbackClocknow takes its two clocks as arguments, defaulting totime.monotonicandtime.time, and the tests pass fakes in directly. Runtime behavior is unchanged.RuntimeBatch[T]inDurableContext.parallelbecause_branchreturnedobject. That made mutmut's type-check pass fail for every module._branchnow returnsCallable[[RuntimeContext], T] | object; nothing else changes.Left out
httpxtohttpx2. The regenerated_generated/client.pyandtypes.pyimporthttpx2, but the SDK's runtime dependency ishttpx(deliberately capped), and the custom endpoint templates and handwritten transports also usehttpx. Taking it means either moving the SDK's runtime HTTP stack tohttpx2(new runtime dependencieshttpx2,httpcore2andtruststore, which also changes TLS trust-store behavior) or keeping template overrides forclient.py/types.py. Either is a design decision, not a routine update, so it stays on 0.29.1 here.SubscriptionUnsubscribedErrorinstead of the SDK's interruption error, and cancelled unsubscribes leave in-flight commands. maintainers/realtime-compatibility.md also requires a maintainer review before any range widening, plus live shared realtime acceptance. The range stays>=0.6.0,<0.7.0.Verification
uv run --locked poe checks(uv 0.12.17) passes: policy, audit, generated-client freshness, ruff lint and format, mypy, basedpyright, 3007 tests, 100% line and branch coverage, package build and installed-package checks, and the tox package environments.MUTATION_MODULE=volcano_sdk._lock_guard poe mutationandMUTATION_MODULE=volcano_sdk.durable_authoring poe mutationpass with no survivors. CI runs the full mutation matrix.scripts/generate_openapi.pywith openapi-python-client 0.29.1 regenerates the client with no diff.Cross-language impact
Classification: none (dev tooling, CI pins, and internal refactors with no behavior change).
Follow the contributor workflow. Tooling checks and dry runs
are not live acceptance. Record a reason for each item that does not apply.