-
-
Notifications
You must be signed in to change notification settings - Fork 723
ENH: Add pre-commit GitHub Action #5239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
60ac520
bbeb4ba
6236617
8bf5217
5f95c9b
2659871
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: pre-commit | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [master] | ||
|
|
||
| jobs: | ||
| pre-commit: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Check install of Python, pre-commit | ||
| run: | | ||
| ./Utilities/GitSetup/setup-precommit | ||
| git config hooks.SetupForDevelopment 99 | ||
| git config user.email "you@example.com" | ||
| git config user.name "Your Name" | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
| - uses: pre-commit/action@v3.0.1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,7 +248,6 @@ class ConnectedImageNeighborhoodShape | |
| { | ||
| return (includeCenterPixel ? 1 : 0) + CalculateNumberOfConnectedNeighbors(maximumCityblockDistance); | ||
| } | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of these spaces removals will counteract changes from #3805.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| }; | ||
|
|
||
| /** Generates the offsets for a connected image neighborhood shape. */ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.