Skip to content

deps: bump Python group (except bgutil) and fix pytest 9.2 / ruff 0.17 fallout - #6

Merged
TheGeneCode merged 3 commits into
mainfrom
deps/python-group-nov
Nov 8, 2026
Merged

TheGeneCode merged 3 commits into
mainfrom
deps/python-group-nov

Conversation

@TheGeneCode

Copy link
Copy Markdown
Owner

What and why

Replaces #5 (Dependabot's grouped Python bump) and keeps 10 of its 11 updates. bgutil-ytdlp-pot-provider stays at 1.3.1: the plugin hard-fails on a major-version mismatch with the server script vendored in vendor/bgutil-pot-provider/, so the 2.0.2 bump would have broken PO-token minting. A major bump has to move both by hand. dependabot.yml now ignores major versions of that package until then.

Fixes for what the bumps broke:

  • pytest 9.2 adds its own LogCaptureHandler to loggers with propagate=False. get_ytdlp_debug_logger() used if debug_logger.handlers: as its "already set up" check, so it treated pytest's handler as its own and never opened the debug log. It now finds its handler by name (set_name / get_name).
  • ruff 0.17 added rules that select = ["ALL"] now enforces:
    • LOG004 caught a real bug. After a failed download, QYTQueue.download called QLogger.exception() with no exception active, so the log showed a NoneType: None traceback. That call is now .error(). QLogger.exception had no other caller (yt-dlp never calls it), so it's removed.
    • log_exception now passes exc_info=exc explicitly, so the traceback comes from the exception it was given.
    • CPY001 (per-file copyright header) and PLR0917 (positional sibling of the already-ignored PLR0913) are ignored.
  • basedpyright: the baseline went from 509 to 507 errors.

Regression tests: test_foreign_handler_does_not_block_file_handler and test_log_exception_outside_except_block_records_passed_traceback.

Checklist

  • uv run pytest -q passes (1973 passed, 14 skipped)
  • uv run ruff check and uv run ruff format --check are clean
  • uv run basedpyright reports no new errors
  • Tests added or updated for behaviour changes
  • README / .env.example updated if a setting or user-visible behaviour changed (n/a)

🤖 Generated with Claude Code

TheGeneCode and others added 2 commits November 8, 2026 09:14
The plugin hard-fails on a major-version mismatch with the vendored
server script, so a major bump has to move both together by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wakepy 1.0 moved its dynamically registered keep-awake methods from
`_implementations` to `methods`. The stale hidden import only warned at
build time, so the frozen app would silently stop keeping the PC awake.
Adds a guard test that every spec hidden import resolves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TheGeneCode
TheGeneCode merged commit dc2a0f2 into main Nov 8, 2026
9 checks passed
@TheGeneCode
TheGeneCode deleted the deps/python-group-nov branch November 8, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant