Skip to content

feat: Drop Python 3.9 support for v1.5.0#231

Merged
shenxianpeng merged 1 commit into
mainfrom
codex/drop-python-39-v150
May 21, 2026
Merged

feat: Drop Python 3.9 support for v1.5.0#231
shenxianpeng merged 1 commit into
mainfrom
codex/drop-python-39-v150

Conversation

@shenxianpeng
Copy link
Copy Markdown
Member

@shenxianpeng shenxianpeng commented May 21, 2026

Summary

  • Drop Python 3.9 support and set the package minimum to Python 3.10.
  • Raise vulnerable dependency floors for pip and pytest, then refresh uv.lock so Dependabot security alerts resolve to patched versions.
  • Update README and example pre-commit snippets to reference the planned v1.5.0 release.

Impact

cpp-linter-hooks v1.5.0 will require Python 3.10 or newer. This allows the lockfile to avoid vulnerable Python 3.9-compatible dependency branches for pip, pytest, and filelock.

Validation

  • uv run pytest -> 113 passed in 39.29s

Summary by CodeRabbit

  • Documentation

    • Updated all examples and documentation to reflect version 1.5.0.
  • Chores

    • Increased minimum Python version requirement to 3.10.
    • Updated minimum pip version to 26.1.
    • Updated minimum pytest version to 9.0.3.

Review Change Stack

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 21, 2026
@sonarqubecloud
Copy link
Copy Markdown

@shenxianpeng shenxianpeng changed the title [codex] Drop Python 3.9 support for v1.5.0 feat: Drop Python 3.9 support for v1.5.0 May 21, 2026
@shenxianpeng shenxianpeng added major A major version bump and removed documentation Improvements or additions to documentation labels May 21, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.07%. Comparing base (31a75ea) to head (eb0fd29).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #231   +/-   ##
=======================================
  Coverage   97.07%   97.07%           
=======================================
  Files           4        4           
  Lines         239      239           
=======================================
  Hits          232      232           
  Misses          7        7           

☔ View full report in Codecov by Sentry.
📢 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.

@shenxianpeng shenxianpeng marked this pull request as ready for review May 21, 2026 03:59
@shenxianpeng shenxianpeng added the enhancement New feature or request label May 21, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 541670cc-4572-4f3e-911a-b1cfe3e608e5

📥 Commits

Reviewing files that changed from the base of the PR and between 31a75ea and eb0fd29.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • README.md
  • examples/cmake/README.md
  • pyproject.toml

Walkthrough

This PR updates cpp-linter-hooks to v1.5.0 by raising the minimum Python requirement to 3.10, updating all documentation examples from v1.4.2 to v1.5.0, and tightening dependency versions for pip and pytest.

Changes

v1.5.0 Release Updates

Layer / File(s) Summary
Project metadata and dependency constraints
pyproject.toml
Python requirement raised to >=3.10, Python 3.9 classifier removed, pip>=26.1 (was >=20.3), and pytest>=9.0.3 (was unconstrained).
Documentation updates for v1.5.0
README.md, examples/cmake/README.md
New Requirements section added to document Python 3.10+ mandate; all .pre-commit-config.yaml code block examples updated from v1.4.2 to v1.5.0 across Quick Start, Custom Configuration Files, Custom Clang Tool Version, Compilation Database, clang-tidy Output, performance optimization, parallel jobs, and verbose output sections.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

enhancement, documentation

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: Drop Python 3.9 support for v1.5.0' directly and clearly summarizes the main objective of the changeset: removing Python 3.9 support and requiring Python 3.10+ for v1.5.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/drop-python-39-v150

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.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 21, 2026

Merging this PR will not alter performance

✅ 90 untouched benchmarks
⏩ 13 skipped benchmarks1


Comparing codex/drop-python-39-v150 (eb0fd29) with main (fab85d9)2

Open in CodSpeed

Footnotes

  1. 13 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (31a75ea) during the generation of this report, so fab85d9 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@shenxianpeng shenxianpeng merged commit b3dad9f into main May 21, 2026
23 of 24 checks passed
@shenxianpeng shenxianpeng deleted the codex/drop-python-39-v150 branch May 21, 2026 05:09
@shenxianpeng shenxianpeng added minor A minor version bump and removed major A major version bump labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor A minor version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant