Skip to content

build(python): bump Python floor from 3.10 to 3.12#111

Merged
patrick-chinchill merged 1 commit into
mainfrom
claude/bump-python-floor-3.12
May 29, 2026
Merged

build(python): bump Python floor from 3.10 to 3.12#111
patrick-chinchill merged 1 commit into
mainfrom
claude/bump-python-floor-3.12

Conversation

@patrick-chinchill
Copy link
Copy Markdown
Collaborator

Summary

Bumps the Python floor from 3.10 to 3.12 across packaging, lint, type checking, and CI test matrix. This unblocks the upcoming Teams adapter migration to microsoft-teams-apps (#93), which requires Python 3.12+. Tracks the Python 3.12 sync wave (#98).

Consumer compatibility: our primary consumer chinchill-api already runs on Python 3.12, so no downstream impact — this was approved by the team.

Changes

  • pyproject.toml:
    • requires-python = ">=3.12" (was >=3.10)
    • [tool.ruff] target-version = "py312" (was py310)
    • [tool.pyrefly] python-version = "3.12" (was 3.10)
    • Dropped Programming Language :: Python :: 3.10 and :: 3.11 classifiers
  • .github/workflows/test.yml: matrix now ["3.12", "3.13"] (was ["3.10", "3.11", "3.12", "3.13"])
  • README.md: "Async-native (Python 3.10+)" → "3.12+" in feature comparison table

Intentionally out of scope

Bumping ruff target-version to py312 surfaces new modernization findings (107 total): UP017 (datetime.timezone.utcdatetime.UTC), UP040 (PEP 695 type keyword), UP041 (asyncio.TimeoutError → builtin). These are explicitly ignored in [tool.ruff.lint] because this PR is the floor bump only, not a modernization sweep. The ignores are commented to make re-enabling deliberate; modernization can land incrementally as future PRs touch the relevant code.

The scripts/fidelity_baseline.json and lint.yml upstream-clone tag are untouched — that's a separate axis (upstream parity, not Python floor).

Test plan

  • uv sync --group dev succeeds on Python 3.12.3
  • uv run ruff check src/ tests/ scripts/ — All checks passed
  • uv run ruff format --check src/ tests/ scripts/ — 197 files already formatted
  • uv run python scripts/audit_test_quality.py — 0 hard failures (39 pre-existing duplicate warnings)
  • uv run pytest tests/ --tb=short -q4036 passed, 3 skipped (matches expected state)
  • uv run pyrefly check — 0 errors, 101 suppressed
  • CI on PR confirms tests pass on both 3.12 and 3.13

Closes #98 (sync wave Python part). Unblocks #93 (Teams SDK migration).

https://claude.ai/code/session_01FyMxQn2BEAzmwKS1GZczKj


Generated by Claude Code

Drops Python 3.10 and 3.11 support across packaging, lint, type checking,
and CI test matrix. Unblocks the upcoming Teams adapter migration to
microsoft-teams-apps (#93), which requires Python 3.12+. Our primary
consumer (chinchill-api) already runs on 3.12, so no consumer impact.

Changes:
- pyproject.toml: requires-python >=3.12, ruff target-version py312,
  pyrefly python-version 3.12, drop 3.10/3.11 classifiers
- .github/workflows/test.yml: matrix now ["3.12", "3.13"]
- README.md: Python 3.10+ -> 3.12+ in feature comparison

Ruff modernization (UP017 datetime.UTC, UP040 PEP 695 type, UP041
TimeoutError) is intentionally ignored for now — this PR is the floor
bump only, not the codebase modernization. Those cleanups can land
incrementally as code changes naturally touch the affected call sites.

Tracking: #98 (Python 3.12 sync wave), #93 (Teams SDK migration).

https://claude.ai/code/session_01FyMxQn2BEAzmwKS1GZczKj
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Warning

Review limit reached

@patrick-chinchill, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 33 minutes and 5 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: de659db0-e45b-46e1-a255-fca7637f8cce

📥 Commits

Reviewing files that changed from the base of the PR and between f1a1d4f and 6612801.

📒 Files selected for processing (3)
  • .github/workflows/test.yml
  • README.md
  • pyproject.toml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request bumps the minimum supported Python version from 3.10 to 3.12. It updates the documentation in README.md, adjusts the Python version requirements and classifiers in pyproject.toml, configures Ruff to target Python 3.12 while temporarily ignoring specific modernization rules (UP017, UP040, and UP041), and updates the tool-specific Python version to 3.12. There are no review comments, and I have no feedback to provide.

@patrick-chinchill patrick-chinchill marked this pull request as ready for review May 29, 2026 00:39
@patrick-chinchill patrick-chinchill merged commit a0d8816 into main May 29, 2026
9 checks passed
patrick-chinchill added a commit that referenced this pull request May 29, 2026
Tiny follow-up to #111 (Python 3.12 floor bump). Post-merge review caught two stale "Python 3.10" mentions in CONTRIBUTING.md that the original PR missed: install instructions and the publish checklist. Docs hygiene only.
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.

Sync upstream 4.28 + 4.29 (next sync after 4.27 wave lands)

2 participants