chore: Add .git-blame-ignore-revs to ignore style in blame view#2687
chore: Add .git-blame-ignore-revs to ignore style in blame view#2687matthewfeickert wants to merge 1 commit intoscikit-hep:mainfrom
Conversation
| @@ -0,0 +1,2 @@ | |||
| # style: Move formatting from Black to Ruff | |||
| dc3a6cfdb66036e318b2317fde0e4ef17f135925 | |||
There was a problem hiding this comment.
As a double check, dc3a6cfdb66036e318b2317fde0e4ef17f135925 is dc3a6cf
There was a problem hiding this comment.
Pull request overview
Adds a repository-level .git-blame-ignore-revs file so GitHub’s blame view (and local git blame when configured) can ignore large, non-functional formatting commits, keeping blame history more useful.
Changes:
- Add
.git-blame-ignore-revsto list formatting-only commit(s) to be ignored by blame. - Include the commit hash for the “Move formatting from Black to Ruff” change set (PR #2686).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2687 +/- ##
=======================================
Coverage 98.18% 98.18%
=======================================
Files 65 65
Lines 4289 4289
Branches 461 461
=======================================
Hits 4211 4211
Misses 48 48
Partials 30 30
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The ruff styles aren't fully implemented. Give me a chance to put in another PR that covers the additional ones recommended from scientific-python. |
|
Requires PR #2688 to go in first. |
* Add a git blame ignore-revs file to automatically ignore commits listed in it from the blame view on GitHub. Include in it style changes added by pre-commit hooks which touch multiple files. To ignore the commits in the .git-blame-ignore-revs when running `git blame` locally run: `git blame --ignore-revs-file .git-blame-ignore-revs`. c.f.: - https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt - https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view * Ignore 'style: Move formatting from Black to Ruff' (PR 2686). * Ignore 'style: Add extended Ruff rules from Scientific Python repo review' (PR 2688).
06b51ae to
6529e94
Compare
| dc3a6cfdb66036e318b2317fde0e4ef17f135925 | ||
|
|
||
| # style: Add extended Ruff rules from Scientific Python repo review | ||
| ebf841e656a9eb9a6114f95971d890be1bde8c3e |
There was a problem hiding this comment.
ebf841e656a9eb9a6114f95971d890be1bde8c3e is ebf841e
|
@kratsg While I'll review the other PRs tonight we can get this one in to make diffing some things easier moving forward. |
Description
Follow up to PR #2686 and #2688
To ignore the commits in the .git-blame-ignore-revs when running
git blamelocally run:git blame --ignore-revs-file .git-blame-ignore-revs.c.f.:
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: