Skip to content

chore: ignore ruff reformat in git blame - #273

Merged
uniqueg merged 1 commit into
devfrom
chore/blame-ignore-revs
Oct 17, 2026
Merged

uniqueg merged 1 commit into
devfrom
chore/blame-ignore-revs

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds .git-blame-ignore-revs listing the squash commit of #267 (dc13ead, ruff adoption and one-off reformat of all files), so that git blame and GitHub's blame view skip it and show the commits that actually introduced each line. Locally, enable it once with git config blame.ignoreRevsFile .git-blame-ignore-revs.

Note that #267 was squash-merged, so the ignored commit also contains its non-formatting changes (ruff config, docstrings, lint fixes); these had no functional effect.

Verification

  • The listed SHA is the full SHA of style: adopt ruff and pre-commit (#267) on dev.

CI: pending (no code changes).

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Enhancements:

  • Add the Ruff reformat commit to Git’s blame ignore list so blame history remains focused on the commits that introduced each line.

@sourcery-ai

sourcery-ai Bot commented Oct 17, 2026 •

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

Reviewer's Guide

Adds a Git blame ignore-revisions file containing the Ruff adoption/reformat commit, improving attribution of existing lines without changing runtime behavior.

File-Level Changes

Change Details Files
Add repository configuration for excluding the Ruff reformat commit from blame history.
  • Create .git-blame-ignore-revs containing the full squash-merge SHA for the Ruff adoption and one-off reformat commit.
  • Allow local Git and GitHub blame views to attribute lines to the commits that originally introduced them when the ignore configuration is enabled.
.git-blame-ignore-revs

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 Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (dc13ead) to head (9252a59).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #273   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1103      1103           
=========================================
  Hits          1103      1103           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

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

☔ 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.

@uniqueg
uniqueg marked this pull request as ready for review October 17, 2026 23:45

@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 reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 69fa5a5 into dev Oct 17, 2026
13 checks passed
@uniqueg
uniqueg deleted the chore/blame-ignore-revs branch October 17, 2026 23:46
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