Skip to content

chore(deps-dev): bump the python group with 11 updates - #3280

Merged
vpetersson merged 1 commit into
Screenly:masterfrom
vpetersson-bot:deps/python-group-supersede-3278
Aug 14, 2026
Merged

chore(deps-dev): bump the python group with 11 updates#3280
vpetersson merged 1 commit into
Screenly:masterfrom
vpetersson-bot:deps/python-group-supersede-3278

Conversation

@vpetersson-bot

Copy link
Copy Markdown
Contributor

Issues Fixed

Supersedes and replaces the Dependabot PR #3278, which fails CI on run-mypy.

Dependabot renamed a package instead of bumping it in the dev-host group:

-    "djangorestframework-stubs==3.17.1",
+    "djangorestframework==3.18.0",

That drops djangorestframework-stubs out of the resolution entirely. It is the package that ships mypy_drf_plugin, which [tool.mypy] plugins still declares, so mypy aborts before checking anything:

pyproject.toml:1: error: Error importing plugin "mypy_drf_plugin.main": No module named 'mypy_drf_plugin'

Most likely a Dependabot grouping bug — djangorestframework and djangorestframework-stubs were both pinned at 3.17.1, and the group update collapsed the two same-version siblings into one entry.

Description

Same 11 bumps as the Dependabot PR, applied on top of current master, with two corrections:

  • djangorestframework-stubs is bumped to 3.18.0 rather than being replaced by djangorestframework, so mypy_drf_plugin stays resolvable.
  • pytest-django 4.13.0 renamed the settings fixture's type from SettingsWrapper to Settings; tests/test_csrf.py is updated to match. This is a TYPE_CHECKING-only import under from __future__ import annotations, so it is a type-annotation change with no runtime effect. It was a latent second failure the Dependabot PR never reached, because mypy exited on the plugin error first.

Bumps: django-stubs / django-stubs-ext 6.0.7 → 6.0.9, djangorestframework / -stubs 3.17.1 → 3.18.0, ruff 0.16.1 → 0.16.2, pygit2 1.19.3 → 1.20.0, packaging 26.2 → 26.3, pytest-django 4.12.0 → 4.13.0, time-machine 3.3.0 → 3.3.1, types-gunicorn and types-python-dateutil to the 2026-08-07 stubs, setuptools build requirement >=83.0.0 → >=84.0.0.

Verified locally: uv run mypy . clean over 169 source files, ruff check and ruff format --check clean, and 1568 unit tests pass (-m "not integration"; tests/test_host_agent_board_subtype.py skipped locally only because netifaces will not build on this host — CI runs it in Docker).

Checklist

  • I have performed a self-review of my own code.
  • New and existing unit tests pass locally and on CI with my changes.
  • I have done an end-to-end test for Raspberry Pi devices.
  • I have tested my changes for x86 devices.
  • I added a documentation for the changes I have made (when necessary).

🤖 Generated with Claude Code

- django-stubs / django-stubs-ext 6.0.7 -> 6.0.9
- djangorestframework / -stubs 3.17.1 -> 3.18.0
- ruff 0.16.1 -> 0.16.2
- pygit2 1.19.3 -> 1.20.0
- packaging 26.2 -> 26.3
- pytest-django 4.12.0 -> 4.13.0
- time-machine 3.3.0 -> 3.3.1
- types-gunicorn / types-python-dateutil to 2026-08-07 stubs
- setuptools build requirement >=83.0.0 -> >=84.0.0
- rename pytest-django's SettingsWrapper to Settings in test_csrf,
  matching the 4.13.0 rename

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@vpetersson-bot
vpetersson-bot requested a review from a team as a code owner August 14, 2026 08:11
Copilot AI lite review requested due to automatic review settings August 14, 2026 08:11
@vpetersson-bot vpetersson-bot self-assigned this Aug 14, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s pinned Python development/runtime dependency set (and lockfile) to the latest compatible versions, while correcting the Dependabot regression that dropped djangorestframework-stubs (breaking mypy_drf_plugin) and aligning CSRF tests with the updated pytest-django fixture typing.

Changes:

  • Bump multiple dev and runtime pins (notably djangorestframework/djangorestframework-stubs, django-stubs/django-stubs-ext, pytest-django, ruff, pygit2, packaging, time-machine, and typeshed stubs) and update uv.lock accordingly.
  • Keep djangorestframework-stubs present and bumped (avoids mypy plugin import failure).
  • Update tests/test_csrf.py to use pytest_django.fixtures.Settings (replacing the renamed SettingsWrapper type).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
uv.lock Regenerates the uv lockfile to reflect the updated dependency pins across groups.
tests/test_csrf.py Updates the pytest-django settings fixture type annotation/import to match the new Settings name.
pyproject.toml Bumps pinned versions in dependency groups and raises the build-system setuptools minimum.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@6d0853d). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3280   +/-   ##
=========================================
  Coverage          ?   90.63%           
=========================================
  Files             ?       76           
  Lines             ?     8467           
  Branches          ?      898           
=========================================
  Hits              ?     7674           
  Misses            ?      571           
  Partials          ?      222           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vpetersson
vpetersson merged commit bada3fb into Screenly:master Aug 14, 2026
12 checks passed
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.

3 participants