Skip to content

chore: update dependencies#53

Merged
mshriver merged 1 commit into
ibutsu:mainfrom
mshriver:chore/update-dependencies
Jul 17, 2026
Merged

chore: update dependencies#53
mshriver merged 1 commit into
ibutsu:mainfrom
mshriver:chore/update-dependencies

Conversation

@mshriver

@mshriver mshriver commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary by Sourcery

Update pre-commit tooling to newer versions and align Python target version for code quality checks.

Build:

  • Bump ruff-pre-commit hook version to v0.15.22 in pre-commit configuration.
  • Update pyupgrade configuration to target Python 3.11+ in pre-commit hooks.
  • Upgrade mypy mirror hook to v2.3.0 in pre-commit configuration.

Co-authored-by: Claude <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR updates pre-commit tool dependencies (ruff, pyupgrade, mypy) and aligns pyupgrade’s target Python version with the project’s current baseline.

Sequence diagram for updated pre_commit hooks (ruff, pyupgrade, mypy)

sequenceDiagram
  actor Developer
  participant Git
  participant PreCommit
  participant Ruff
  participant Pyupgrade
  participant Mypy

  Developer->>Git: git commit
  Git->>PreCommit: run configured hooks
  PreCommit->>Ruff: ruff-check (rev v0_15_22)
  PreCommit->>Pyupgrade: pyupgrade --py311-plus (rev v3_21_2)
  PreCommit->>Mypy: mypy (rev v2_3_0)
  Mypy-->>PreCommit: type_check_result
  Pyupgrade-->>PreCommit: code_upgrade_result
  Ruff-->>PreCommit: lint_result
  PreCommit-->>Git: allow or reject commit based on results
Loading

File-Level Changes

Change Details Files
Update ruff pre-commit hook to a newer release.
  • Bump ruff-pre-commit revision to v0.15.22
  • Keep existing ruff-check hook configuration and autofix behavior unchanged
.pre-commit-config.yaml
Raise the Python version target for pyupgrade to Python 3.11.
  • Change pyupgrade args from --py38-plus to --py311-plus to match a newer minimum supported Python version
.pre-commit-config.yaml
Update mypy pre-commit hook to a newer major release.
  • Bump mirrors-mypy revision from v1.18.2 to v2.3.0
  • Retain mypy hook configuration and language_version setting
.pre-commit-config.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.57%. Comparing base (307add9) to head (dfbf649).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #53   +/-   ##
=======================================
  Coverage   84.57%   84.57%           
=======================================
  Files          58       58           
  Lines        4783     4783           
  Branches      496      496           
=======================================
  Hits         4045     4045           
  Misses        496      496           
  Partials      242      242           
Flag Coverage Δ
unittests 84.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 307add9...dfbf649. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sourcery-ai sourcery-ai Bot 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.

Hey - I've left some high level feedback:

  • Confirm that the project’s officially supported minimum Python version is 3.11+ before changing pyupgrade to --py311-plus, as this may introduce syntax incompatible with any environments still on earlier Python versions.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Confirm that the project’s officially supported minimum Python version is 3.11+ before changing pyupgrade to `--py311-plus`, as this may introduce syntax incompatible with any environments still on earlier Python versions.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@mshriver
mshriver merged commit f18ee4d into ibutsu:main Jul 17, 2026
9 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.

1 participant