-
Notifications
You must be signed in to change notification settings - Fork 18
ENH: Build/tooling housecleaning ahead of FEM removal and ITKv6 content updates #236
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
Open
hjmjohnson
wants to merge
8
commits into
InsightSoftwareConsortium:main
Choose a base branch
from
hjmjohnson:add-pixi-and-precommit-tooling
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
effc0cc
ENH: Add pixi environments for reproducible builds
hjmjohnson 061df12
ENH: Add pre-commit hooks with advisory chktex LaTeX lint
hjmjohnson 9de8b1e
BUG: Fix shebang typo in latex_linter.sh
hjmjohnson f7b0d60
ENH: Modernize SuperBuild CMake, dropping retired compatibility code
hjmjohnson 82b8bf9
ENH: Standardize on ITK 6 and drop deprecated ITK_USE_FILE
hjmjohnson 695cde5
ENH: Further CMake modernization of the SoftwareGuide build
hjmjohnson 126ca32
ENH: Require ImageMagick 7 and convert via the magick subcommand
hjmjohnson 72f4c61
ENH: Migrate CI to pixi on ubuntu-latest
hjmjohnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| /Utilities/.chktexrc | ||
| .pixi/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # .pre-commit-config.yaml | ||
| # See https://pre-commit.com ; install with: pixi run -e pre-commit pre-commit-install | ||
| # Skip a hook for one commit with: SKIP=<id> git commit ... | ||
|
|
||
| default_stages: [pre-commit] | ||
| exclude: '^(XFigOriginals/|.*/Art/|.*\.(eps|fig|dia|gnup|jpg|jpeg|png|pdf))$' | ||
|
|
||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| - id: trailing-whitespace | ||
| - id: end-of-file-fixer | ||
| - id: check-added-large-files | ||
| args: ['--maxkb=1024'] | ||
| - id: check-merge-conflict | ||
| - id: check-case-conflict | ||
| - id: mixed-line-ending | ||
|
|
||
| - repo: local | ||
| hooks: | ||
| # LaTeX lint (advisory) — migrated from Utilities/latex_linter.sh. | ||
| # Runs per staged .tex file; prints findings but never blocks the commit. | ||
| - id: chktex | ||
| name: 'chktex (LaTeX lint, advisory)' | ||
| entry: Utilities/Hooks/chktex-lint.sh | ||
| language: system | ||
| files: '\.tex$' | ||
| verbose: true | ||
|
|
||
| # Enforce the ITK commit-message prefix (BUG:/COMP:/DOC:/ENH:/PERF:/STYLE:/WIP:). | ||
| # Reuses the authoritative native hook so the rule lives in one place. | ||
| - id: commit-prefix | ||
| name: 'commit message prefix' | ||
| entry: Utilities/Hooks/commit-msg | ||
| language: system | ||
| stages: [commit-msg] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/usr/bin/env bash | ||
| # Advisory LaTeX lint via chktex for staged .tex files. | ||
| # Never blocks the commit; prints findings so the author can fix new prose. | ||
| # Ignore-code policy mirrors Utilities/latex_linter.sh, plus 27 (cannot resolve | ||
| # \input across files) which is unavoidable noise when linting one staged file. | ||
|
|
||
| command -v chktex >/dev/null 2>&1 || { | ||
| echo "chktex not found on PATH (install TeX Live / MacTeX); skipping LaTeX lint." >&2 | ||
| exit 0 | ||
| } | ||
|
|
||
| IGNORE_WARNING_CODES="-n 1 -n 3 -n 8 -n 12 -n 13 -n 27 -n 36 -n 37" | ||
|
|
||
| # Filter the "Unable to open the TeX file" banner: per-file linting cannot see | ||
| # \input targets that live in the build tree, and that banner is not a finding. | ||
| chktex ${IGNORE_WARNING_CODES} --quiet "$@" 2>&1 | | ||
| grep -v 'Unable to open the TeX file' || true | ||
| exit 0 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Variable
LANGUAGEhas been removed. Was that intentional?