← Back to Pull requests

Add support for Python 3.15 #20

Merged
hugovk merged 9 files (223 lines) on Oct 28, 2026 13:35 UTC
View on GitHub
hugovk hugovk commented on Oct 28, 2026 11:59 UTC
Author

Summary

<!-- Explain the user-visible or repository-level outcome. -->

Python 3.15 is out! https://discuss.python.org/t/python-3-15-0-final-is-here/109415

Add support. Also enable colour in CI logs for readability, helps find failing tests.

Design milestone

<!-- Name one milestone from docs/design.md and its acceptance criteria. -->

n/a

Verification

<!-- List the exact commands run and their results. -->

  • uv sync --frozen

  • uv run ruff check .

  • uv run ruff format --check .

  • uv run mypy src scripts

  • uv run pytest

  • uv build

  • uv run pyahead --version

  • git diff --check
  • Erm, I've not done these, but CI passes.

    Scope review

  • Tests cover the implemented behaviour.

  • No later-milestone or unrelated work is included.

  • The diff contains no secrets, local absolute paths, or unintended

  • generated files.

    Diff: 223 lines (+164 / -59) across 9 files Reviewer: diegorusso Review duration: 95m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.47) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 223 lines diff across 9 files
    0.47
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 1 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.324
    Real PR Conversation Timeline
    3 items
    hugovk hugovk commented on code on Oct 28, 2026 12:01 UTC
    Code Review
    .github/workflows/ci.yml:1
    @@ -100,6 +103,7 @@ jobs:
           - name: Run tests
             run: uv run pytest
     
    +  # TODO Add 3.16, pending https://github.com/actions/setup-python/issues/1371

    I expect https://github.com/actions/setup-python/issues/1371 should be resolved fairly soon, there's a PR in progress: https://github.com/actions/python-versions/pull/413.

    So I think it's okay to have an extra 3.15 job for now, and it can be bumped to 3.16 when that's done.

    diegorusso diegorusso approved these changes on Oct 28, 2026 13:27 UTC
    Approved Reviewer

    Thanks for the PR!

    Reviewers
    Assignees
    hugovk hugovk
    Labels
    risk: low confidence: 90.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.1% (MEDIUM) · Higher = larger blast radius
    47.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 90.6% · Lower = rushed or shallow review
    90.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4.4% · Safe to merge
    4.4%