-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ENH: Add pre-commit GitHub Action #5239
ENH: Add pre-commit GitHub Action #5239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
e859a3d
to
f85e6a8
Compare
3b1825a
to
9e06ec9
Compare
Run our pre-commit checks. The pre-commit GHA will install via `python -m pip`. Configure hooks.SetupForDevelopment for pre-commit GHA. Set to a high number to avoid local developer check. Also mock user.email, user.name for local hooks.
Found by pre-commit GitHub Action.
Applied via: pixi run pre-commit-run
Latest version.
9e06ec9
to
8915e0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should hold off the last 2 commits for now?
@@ -248,7 +248,6 @@ class ConnectedImageNeighborhoodShape | |||
{ | |||
return (includeCenterPixel ? 1 : 0) + CalculateNumberOfConnectedNeighbors(maximumCityblockDistance); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these spaces removals will counteract changes from #3805.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a hard time following the issue and resolution in #3805.
These were necessary to get the CI green.
Modules/Filtering/QuadEdgeMeshFiltering/include/itkQuadEdgeMeshDecimationCriteria.h
Show resolved
Hide resolved
Last available on mirrors-clang-format. The procedure described in InsightSoftwareConsortium@98f0ffa was followed to ensure no changes were required to the .clang-format configuration files.
clang-format 19.1.7 and pre-commit 4.1.0.
8915e0e
to
2659871
Compare
These are necessary to get the CI check green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re: #5239 (comment). I've noticed that, but it looks like the changes in PR #3805 did not have the desired effect, or else, ther were more warnings that were raised after that:
https://open.cdash.org/viewBuildError.php?type=1&buildid=10204557
😔 We will need to revisit the unbalanced warnings issue. Approving.
Run our pre-commit checks.