Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
ddd3ac7
COMP: Adopt pixi and pre-commit for build environment
hjmjohnson Sep 16, 2026
c937c0e
ENH: Add target platform and architecture resolution
hjmjohnson Sep 16, 2026
efde3c9
ENH: Add direct coverage for TargetPlatform.detect() OS matrix
hjmjohnson Sep 16, 2026
e3da598
ENH: Add remote module dependency and ITK version pinning
hjmjohnson Sep 16, 2026
89d51cf
ENH: Add platform builder hierarchy and build environment
hjmjohnson Sep 16, 2026
efbb2ad
ENH: Test the builder template method on every platform
hjmjohnson Sep 16, 2026
be68ccb
ENH: Add wheel build driver, packaging, and publishing
hjmjohnson Sep 16, 2026
1044f24
COMP: Update CMake and add shell and PowerShell entry points
hjmjohnson Sep 17, 2026
2ced22c
ENH: Remove superseded shell based build system
hjmjohnson Sep 17, 2026
b3f0063
DOC: Re-platform documentation for the pixi build
hjmjohnson Sep 17, 2026
28bab64
DOC: Add AGENTS.md and CLAUDE.md for agentic coding tools
hjmjohnson Sep 20, 2026
12795bf
DOC: Correct README build commands and add a verification step
hjmjohnson Sep 20, 2026
0db6c68
PERF: Bound ninja jobs by physical memory and key -l to the thread count
hjmjohnson Sep 20, 2026
3f3abfd
PERF: Build the ITK wheels with Ninja on Windows, as the module wheel…
hjmjohnson Sep 20, 2026
eef91d2
COMP: Restore the manylinux image-coordinate script
hjmjohnson Sep 20, 2026
7abf651
DOC: Remove the unused Sphinx batch file and correct the cache path note
hjmjohnson Sep 20, 2026
13632fc
ENH: Allow building a remote module against an installed ITK
hjmjohnson Sep 21, 2026
ee3ee9c
ENH: Derive the Windows build root from the checkout location
hjmjohnson Sep 24, 2026
be19d31
COMP: Bound the pixi installer download and fall back to the GitHub r…
hjmjohnson Sep 24, 2026
89f3e2e
BUG: Fail the superbuild step when its build fails, not later in step 02
hjmjohnson Sep 24, 2026
d48db67
BUG: Treat a manylinux pixi environment as a manylinux build
dzenanz Nov 17, 2026
d35199f
BUG: Honor --use-ccache and stop when ccache is missing
dzenanz Nov 17, 2026
52b937f
BUG: Build the local ITK revision when fetching tags fails
dzenanz Nov 17, 2026
55c2528
BUG: Give the manylinux container its own pixi environments and cache
dzenanz Nov 17, 2026
060aafd
ENH: Default TARGET_ARCH to the host architecture for manylinux builds
dzenanz Nov 17, 2026
d2964cf
BUG: Read wheel module names and directories from itk-module.cmake
dzenanz Nov 17, 2026
23e21c6
ENH: Build the ITK modules ingested from remote modules into the wheels
dzenanz Nov 17, 2026
7a9cee4
ENH: Fail the wheel build when a wheel exceeds the PyPI size limit
dzenanz Nov 17, 2026
24bdce9
ENH: Package ingested filtering modules in an itk-filtering-extra wheel
dzenanz Nov 17, 2026
47dd2dd
BUG: Make itk-io require itk-numerics
dzenanz Nov 17, 2026
38b6f80
BUG: Remove the unused --use-sudo option of build_wheels.py
dzenanz Nov 17, 2026
4bccc04
ENH: Add release-wheels, one command for each release build machine
dzenanz Nov 17, 2026
49e1b28
BUG: Silence bare spatial key deprecation in the NumPy docs test
dzenanz Nov 18, 2026
3ea9e53
ENH: Add --dead-strip to discard unreferenced code in Linux wheels
hjmjohnson Nov 19, 2026
ac40de5
ENH: Export only PyInit_* from Python modules built with --dead-strip
hjmjohnson Nov 19, 2026
5b96053
ENH: Make --dead-strip the default for Linux wheel builds
hjmjohnson Nov 19, 2026
68b8c9f
COMP: Link --dead-strip wheels with the default linker instead of gold
hjmjohnson Nov 19, 2026
ae0512c
BUG: Merge user -D flags with the --dead-strip flags instead of losin…
hjmjohnson Nov 19, 2026
e27a624
BUG: Accept -D CMake definitions between build_wheels.py options
hjmjohnson Nov 19, 2026
76efc31
ENH: Make --dead-strip the default for macOS Python modules
hjmjohnson Nov 19, 2026
3e825fb
COMP: Adopt the Scientific Python pytest settings and dev dependency …
hjmjohnson Nov 20, 2026
95f1064
COMP: Update the ruff and black pre-commit hooks
hjmjohnson Nov 20, 2026
27bd9e4
COMP: Add manual dispatch, run cancellation, and Dependabot to CI
hjmjohnson Nov 20, 2026
d053cb4
COMP: Mark PP002 and PP003 not applicable to the tooling pyproject
hjmjohnson Nov 20, 2026
32322e1
DOC: Add the Apache 2.0 license at the repository root
hjmjohnson Nov 20, 2026
34edadd
COMP: Adopt the Scientific Python ruff rule list
hjmjohnson Nov 20, 2026
7ef827c
STYLE: FURB110 Replace ternary `if` expression with `or` operator
hjmjohnson Nov 20, 2026
93714b4
STYLE: PLR1711 Useless `return` statement at end of function
hjmjohnson Nov 20, 2026
d92024d
STYLE: RUF010 Use explicit conversion flag
hjmjohnson Nov 20, 2026
20512a9
STYLE: SIM910 Use `dict.get()` without default value
hjmjohnson Nov 20, 2026
5ead04e
STYLE: ISC001 Implicitly concatenated string literals on one line
hjmjohnson Nov 20, 2026
7e605da
STYLE: ISC003 Concatenate adjacent string literals implicitly
hjmjohnson Nov 20, 2026
2a38bba
STYLE: FURB129 Iterate over file objects instead of readlines()
hjmjohnson Nov 20, 2026
169e3e7
STYLE: RET505 Unnecessary `else` after `return` statement
hjmjohnson Nov 20, 2026
921701b
STYLE: RUF100 Remove noqa directives for rules that are not enabled
hjmjohnson Nov 20, 2026
ea3c5a9
STYLE: PLR5501 Use elif instead of else followed by if
hjmjohnson Nov 20, 2026
9bdf8ab
STYLE: RUF005 Unpack into a list literal instead of concatenating
hjmjohnson Nov 20, 2026
b8503f3
STYLE: RUF013 PEP 484 prohibits implicit `Optional`
hjmjohnson Nov 20, 2026
a41aba1
STYLE: RUF036 Put None last in type unions
hjmjohnson Nov 20, 2026
f853509
STYLE: SIM108 Use a conditional expression for a two-branch assignment
hjmjohnson Nov 20, 2026
23c3d8e
STYLE: RET504 Return values directly instead of assigning them first
hjmjohnson Nov 20, 2026
658384b
STYLE: RUF059 Prefix unused unpacked variables with an underscore
hjmjohnson Nov 20, 2026
c803d8e
STYLE: TC003 Import typing-only stdlib names under TYPE_CHECKING
hjmjohnson Nov 20, 2026
837869f
STYLE: SIM118 Use `key in dict` instead of `key in dict.keys()`
hjmjohnson Nov 20, 2026
19fb3af
STYLE: EXE001 Make the release_wheels.py script executable
hjmjohnson Nov 20, 2026
65234ed
STYLE: PTH100 Replace os.path.abspath() with Path.resolve()
hjmjohnson Nov 20, 2026
747e705
STYLE: PTH119 Replace os.path.basename() with Path.name
hjmjohnson Nov 20, 2026
c07eca2
STYLE: PTH120 Replace os.path.dirname() with Path.parent
hjmjohnson Nov 20, 2026
7f137f6
STYLE: RUF002 Replace an ambiguous en dash in a docstring
hjmjohnson Nov 20, 2026
8bd22a3
STYLE: SIM115 Read the cgroup memory limit through a context manager
hjmjohnson Nov 20, 2026
c64a1f8
STYLE: RUF043 Escape the dots in pytest.raises match patterns
hjmjohnson Nov 20, 2026
a89dd95
STYLE: TRY300 Move the success return of a try block into else
hjmjohnson Nov 20, 2026
3cc9f26
STYLE: PLW1510 Pass an explicit check to every subprocess.run call
hjmjohnson Nov 20, 2026
c487026
STYLE: PLW2901 Stop overwriting for-loop variables
hjmjohnson Nov 20, 2026
76efbff
STYLE: ARG005 Mark unused lambda arguments in test mocks
hjmjohnson Nov 20, 2026
466691d
STYLE: PTH118 Replace os.path.join() with Path for file access
hjmjohnson Nov 20, 2026
aba876a
STYLE: SIM105 Use contextlib.suppress() in place of try-except-pass
hjmjohnson Nov 20, 2026
9bc564d
COMP: Accept PLC0415 for platform builders and test imports
hjmjohnson Nov 20, 2026
f84b6de
STYLE: EM101 Assign exception messages to a variable before raising
hjmjohnson Nov 20, 2026
b24ad71
STYLE: SIM117 Combine nested with statements
hjmjohnson Nov 20, 2026
c373411
STYLE: EM102 Assign f-string exception messages to a variable
hjmjohnson Nov 20, 2026
fea9557
STYLE: PTH123 Replace builtin open() with Path.open()
hjmjohnson Nov 20, 2026
a9ece99
COMP: TRY003 Adopt now that every exception message is a variable
hjmjohnson Nov 20, 2026
afbf4fc
COMP: Keep ARG001 and ARG002 parked with the reason
hjmjohnson Nov 20, 2026
b42f3d3
COMP: Treat warnings as errors in the test suite
hjmjohnson Nov 20, 2026
7a23a32
STYLE: Add codespell and fix the three typos it finds
hjmjohnson Nov 20, 2026
9dc7c0c
COMP: Run the hygiene and spelling hooks on docs
hjmjohnson Nov 20, 2026
924bf12
STYLE: Add the pygrep reStructuredText hooks
hjmjohnson Nov 20, 2026
fe783ce
STYLE: Format Markdown with prettier
hjmjohnson Nov 20, 2026
b0cc56d
STYLE: Check Python code blocks in docs with blacken-docs
hjmjohnson Nov 20, 2026
dc7b1d7
COMP: Give the workflows read-only repository permissions
hjmjohnson Nov 20, 2026
6733ca2
COMP: Do not persist the checkout token in the workspace
hjmjohnson Nov 20, 2026
0463f30
COMP: Pin the workflow actions to commit hashes
hjmjohnson Nov 20, 2026
f286270
COMP: Wait seven days before Dependabot proposes an action update
hjmjohnson Nov 20, 2026
32ec1c6
COMP: Audit the GitHub Actions workflows with zizmor
hjmjohnson Nov 20, 2026
a048fb8
STYLE: Correct the type annotations mypy reports
hjmjohnson Nov 20, 2026
a2a36a3
ENH: Fail clearly when the module dir or Python version is missing
hjmjohnson Nov 20, 2026
76e573a
COMP: Type-check scripts and tests with mypy
hjmjohnson Nov 20, 2026
0227e01
COMP: Enable the mypy error codes the guide recommends
hjmjohnson Nov 20, 2026
39b3419
COMP: Warn on unreachable code in mypy
hjmjohnson Nov 20, 2026
613455e
COMP: Warn on unused mypy ignores
hjmjohnson Nov 20, 2026
2e6de5d
COMP: Warn when mypy sees Any returned from a typed function
hjmjohnson Nov 20, 2026
3572dd1
COMP: Type-check the bodies of unannotated functions
hjmjohnson Nov 20, 2026
c209816
COMP: Require type arguments on generic types in mypy
hjmjohnson Nov 20, 2026
cb9f8d3
STYLE: Annotate the script functions mypy reports as untyped
hjmjohnson Nov 20, 2026
55a7c9c
BUG: Test the ITK source handling through the code that does it
hjmjohnson Nov 20, 2026
54798d6
ENH: Test the ITK configure definitions through a function
hjmjohnson Nov 20, 2026
4164655
ENH: Test the cache tarball's .git exclusion with the real tar
hjmjohnson Nov 20, 2026
5760e05
STYLE: Annotate test helpers and disallow untyped calls
hjmjohnson Nov 20, 2026
248af12
STYLE: Enable mypy strict_equality
hjmjohnson Nov 20, 2026
b4b3783
STYLE: Enable mypy no_implicit_reexport
hjmjohnson Nov 20, 2026
ed0f68a
COMP: Run mypy in strict mode
hjmjohnson Nov 20, 2026
03e3707
ENH: Add a nox task runner for lint, tests, and docs
hjmjohnson Nov 20, 2026
4fc5fae
DOC: Describe the nox sessions in CONTRIBUTING.md
hjmjohnson Nov 20, 2026
77615d9
ENH: Compile through sccache on Windows and ccache elsewhere
hjmjohnson Nov 20, 2026
d9b8f7d
BUG: Let --no-use-ccache override USE_CCACHE in the environment
hjmjohnson Nov 20, 2026
317c9f5
ENH: Forward the compiler launcher to the superbuild's projects
hjmjohnson Nov 20, 2026
b1f9884
ENH: Install ccache and sccache in the build environments
hjmjohnson Nov 20, 2026
6f86f9c
ENH: Keep a compiler cache for each manylinux image and architecture
hjmjohnson Nov 20, 2026
7e82261
ENH: Report the compiler cache's hit rate for each build
hjmjohnson Nov 20, 2026
902acba
ENH: Build release wheels through the compiler cache
hjmjohnson Nov 20, 2026
85b8f01
ENH: Pass CONTAINER_DNS to the manylinux build container as --dns
hjmjohnson Nov 20, 2026
9b7b5cd
BUG: Save the ccache size limit in the cache directory
hjmjohnson Nov 20, 2026
20a178f
ENH: Stamp wheel zip entries with the ITK commit time
hjmjohnson Nov 20, 2026
ae0097c
ENH: Set SOURCE_DATE_EPOCH once on the host for every wheel build
hjmjohnson Nov 20, 2026
7b91472
BUG: Keep one sccache server alive for the whole Windows build
hjmjohnson Nov 20, 2026
3a91f58
ENH: Let BuildManager reset its steps when the build inputs change
hjmjohnson Nov 20, 2026
70aa255
BUG: Re-run every build step when the ITK commit or build inputs change
hjmjohnson Nov 20, 2026
eae89f0
BUG: Move wheels of earlier runs out of dist/ before building wheels
hjmjohnson Nov 20, 2026
6fcb564
ENH: Link Windows binaries with /Brepro so wheels are reproducible
hjmjohnson Nov 20, 2026
494ce09
COMP: Format Python with ruff-format in place of black
hjmjohnson Nov 21, 2026
9ba36fa
STYLE: Remove unused discover_python_venvs from the wheel builders
hjmjohnson Nov 21, 2026
4144943
STYLE: Move Unix-only venv and tarball methods to the POSIX builder
hjmjohnson Nov 21, 2026
c91f2f3
STYLE: Share wheel repair output and result checks in the base builder
hjmjohnson Nov 21, 2026
0fd1a87
STYLE: Configure oneTBB once in the base builder
hjmjohnson Nov 21, 2026
f265266
STYLE: Move fixup_wheels into the Windows builder
hjmjohnson Nov 21, 2026
aca2c16
STYLE: Declare _configure_toolchain abstract in the base builder
hjmjohnson Nov 21, 2026
d1bc824
BUG: Archive the 7-Zip roots in the Windows zip fallback
hjmjohnson Nov 21, 2026
8d2c423
BUG: Detect a failed delvewheel repair of a wheel in its own dist
hjmjohnson Nov 21, 2026
4952f42
BUG: Pass the mounted module dependencies directory in the container
hjmjohnson Nov 21, 2026
687fb49
BUG: Build the manylinux tarball cache only when asked
hjmjohnson Nov 21, 2026
2de9dff
BUG: Give each manylinux architecture its own host build root
hjmjohnson Nov 21, 2026
e9ca08d
BUG: Forward USE_COMPILER_CACHE into the manylinux container
hjmjohnson Nov 21, 2026
8305590
BUG: Refuse host manylinux builds on aarch64 too
hjmjohnson Nov 21, 2026
a30bbdb
BUG: Find pixi and drop a stray empty CMake argument on macOS modules
hjmjohnson Nov 21, 2026
3500a0a
BUG: Default the manylinux module dependencies directory to a real path
hjmjohnson Nov 21, 2026
02268b9
BUG: Read environment fallbacks and drop the unreachable superbuild half
hjmjohnson Nov 21, 2026
df8a6c1
BUG: Keep ITK source sync from acting on an enclosing repository
hjmjohnson Nov 21, 2026
bf5c538
BUG: Match the x64 manylinux image tag to the one releases use
hjmjohnson Nov 21, 2026
dc28834
STYLE: Drop the per-wheel long description nothing reads
hjmjohnson Nov 21, 2026
71797c3
BUG: Remove the module pyproject backup when no pin was rewritten
hjmjohnson Nov 21, 2026
9e463a5
BUG: Run hostsystem builds without a pixi run preamble
hjmjohnson Nov 21, 2026
53f500a
STYLE: Remove branches that cannot be reached
hjmjohnson Nov 21, 2026
36efe92
STYLE: Make the build report load comment match its error
hjmjohnson Nov 21, 2026
766f95d
BUG: Refuse positional CMake options instead of dropping them
hjmjohnson Nov 21, 2026
b10467d
BUG: Make the ITK binary directory test tell its two branches apart
hjmjohnson Nov 21, 2026
a9bfeae
BUG: Rerun a remote module build when the module's sources change
hjmjohnson Nov 21, 2026
a0a96ae
COMP: Run the unit tests in GitHub Actions
hjmjohnson Nov 21, 2026
38ac3cf
STYLE: Bring docs and docstrings in line with the AGENTS.md policy
hjmjohnson Nov 21, 2026
5a93868
STYLE: Use US English spelling
hjmjohnson Nov 21, 2026
196b95d
STYLE: Replace em dashes with colons, semicolons, or commas
hjmjohnson Nov 21, 2026
bf5fa0b
STYLE: Trim comments to the reasons the code needs
hjmjohnson Nov 21, 2026
5cc4dd8
COMP: Make the manylinux cache download script run on macOS
hjmjohnson Nov 21, 2026
6bffb9d
DOC: Correct stale build values and document the build's knobs
hjmjohnson Nov 21, 2026
1180b4e
STYLE: Use platform_env directly as the pixi environment name
hjmjohnson Nov 21, 2026
cc0f20a
STYLE: Call the POSIX tarball and venv path functions directly
hjmjohnson Nov 21, 2026
2502433
STYLE: Pass explicit values to the cleanup and tarball functions
hjmjohnson Nov 21, 2026
66a79b9
BUG: Replace venv_info_dict with a validated PythonEnvironment
hjmjohnson Nov 21, 2026
868d1e9
STYLE: Name operating systems with an OS enum beside Arch
hjmjohnson Nov 21, 2026
8d8a04e
STYLE: Describe each release target with one ReleaseTarget record
hjmjohnson Nov 21, 2026
d819625
STYLE: Move platform switches from the builders into hooks
hjmjohnson Nov 21, 2026
630e120
STYLE: Assemble both python -m build commands in one helper
hjmjohnson Nov 21, 2026
3f20824
STYLE: Share one helper for skipping build steps
hjmjohnson Nov 21, 2026
853d3e9
STYLE: Probe the Python include directory in one place
hjmjohnson Nov 21, 2026
bdcddf1
STYLE: Share one fake repair tool across the repair tests
hjmjohnson Nov 21, 2026
3452b57
STYLE: Name the Windows default build root once
hjmjohnson Nov 21, 2026
c562e4d
STYLE: Resolve the IPP directory and pixi once in build_wheels_main
hjmjohnson Nov 21, 2026
d300a10
STYLE: Use textwrap.indent in place of a copied indent function
hjmjohnson Nov 21, 2026
f7f927b
STYLE: Copy module dependency files through one helper
hjmjohnson Nov 21, 2026
860b397
STYLE: Check required environment variables with one sourced function
hjmjohnson Nov 21, 2026
91af4a8
BUG: Drop the i686 and Intel macOS target platforms
hjmjohnson Nov 21, 2026
3337f50
STYLE: Choose the builder from the target OS, without aliases
hjmjohnson Nov 21, 2026
9e64605
BUG: Say that --exclude_libs is ignored instead of exporting it unused
hjmjohnson Nov 21, 2026
ea56e01
STYLE: Drop the unused pixi argument of compute_itk_package_version
hjmjohnson Nov 21, 2026
7157fe0
STYLE: Stop storing cmake_options on the builder
hjmjohnson Nov 21, 2026
69caa57
STYLE: Remove the unused push_dir, give_relative_path, and copy helpers
hjmjohnson Nov 21, 2026
bfe0236
STYLE: Give platform-only builder options to their one platform
hjmjohnson Nov 21, 2026
5da2285
STYLE: Correct the spelling of cmake_superbuild_arguments
hjmjohnson Nov 21, 2026
7a21cb6
STYLE: Rename find_unix_exectable_paths to find_unix_python_paths
hjmjohnson Nov 21, 2026
b9d7f56
STYLE: Rename run_commandLine_subprocess to run_command
hjmjohnson Nov 21, 2026
ef41ef3
STYLE: Rename the CMakeArgumentBuilder renderers to snake_case
hjmjohnson Nov 21, 2026
5525339
STYLE: Name the error messages msg like every other raise site
hjmjohnson Nov 21, 2026
ca66f28
STYLE: Make the shared which and remove_tree helpers public
hjmjohnson Nov 21, 2026
3d528a8
STYLE: Rename BuildManager.py to build_manager.py
hjmjohnson Nov 21, 2026
5b72da6
STYLE: Lowercase the local names in pyproject_configure
hjmjohnson Nov 21, 2026
c479ff7
STYLE: Split build_wheels_main into named steps
hjmjohnson Nov 21, 2026
151a464
STYLE: Pass build_module_dependencies explicit values, not the builder
hjmjohnson Nov 21, 2026
8de4945
STYLE: Remove the forwarding get_py_api and build_dir_suffix
hjmjohnson Nov 21, 2026
14457ba
BUG: Catch only the expected errors in cleanup, copies, and the probe
hjmjohnson Nov 21, 2026
1e66d4f
BUG: Fail the macOS repair when delocate is missing
hjmjohnson Nov 21, 2026
d53602f
COMP: Type wheel_builder_utils for strict mypy
hjmjohnson Nov 21, 2026
66fe53f
COMP: Type build_environment for strict mypy
hjmjohnson Nov 21, 2026
cde1325
COMP: Type build_manager for strict mypy
hjmjohnson Nov 21, 2026
9a0aafb
COMP: Type install_pixi for strict mypy
hjmjohnson Nov 21, 2026
5b2784e
COMP: Type wheel_packaging for strict mypy
hjmjohnson Nov 21, 2026
a88bcf2
COMP: Type pyproject_configure for strict mypy
hjmjohnson Nov 21, 2026
206fc39
COMP: Type build_python_instance_base for strict mypy
hjmjohnson Nov 21, 2026
31d749f
COMP: Type linux_build_python_instance for strict mypy
hjmjohnson Nov 21, 2026
78aac3e
COMP: Type macos_build_python_instance for strict mypy
hjmjohnson Nov 21, 2026
ec92de9
COMP: Type windows_build_python_instance for strict mypy
hjmjohnson Nov 21, 2026
14be07e
COMP: Type the test fixtures for strict mypy
hjmjohnson Nov 21, 2026
d7c4a3f
COMP: Type test_build_environment for strict mypy
hjmjohnson Nov 21, 2026
641009e
COMP: Type test_build_inputs for strict mypy
hjmjohnson Nov 21, 2026
bd9cc41
COMP: Type test_build_jobs for strict mypy
hjmjohnson Nov 21, 2026
d2869dc
COMP: Type test_build_manager for strict mypy
hjmjohnson Nov 21, 2026
96002cc
COMP: Type test_build_steps for strict mypy
hjmjohnson Nov 21, 2026
4e95b7c
COMP: Type test_cmake_define_args for strict mypy
hjmjohnson Nov 21, 2026
8fdd0a8
COMP: Type test_compiler_cache for strict mypy
hjmjohnson Nov 21, 2026
368fabb
COMP: Type test_dead_strip for strict mypy
hjmjohnson Nov 21, 2026
dac8946
COMP: Type test_final_wheel_import_test for strict mypy
hjmjohnson Nov 21, 2026
d557cea
COMP: Type test_installed_itk_dir for strict mypy
hjmjohnson Nov 21, 2026
3f5c324
COMP: Type test_itk_source_without_git for strict mypy
hjmjohnson Nov 21, 2026
c7384b1
COMP: Type test_module_dependencies_root for strict mypy
hjmjohnson Nov 21, 2026
e47d777
COMP: Type test_module_dependencies for strict mypy
hjmjohnson Nov 21, 2026
fc836a2
COMP: Type test_platform_builders for strict mypy
hjmjohnson Nov 21, 2026
0fddf9d
COMP: Type test_pyproject_configure for strict mypy
hjmjohnson Nov 21, 2026
2367938
COMP: Type test_release_wheels for strict mypy
hjmjohnson Nov 21, 2026
30cf178
COMP: Type test_require_env_vars for strict mypy
hjmjohnson Nov 21, 2026
77f007a
COMP: Type test_source_date_epoch for strict mypy
hjmjohnson Nov 21, 2026
3ea9522
COMP: Type test_stable_abi for strict mypy
hjmjohnson Nov 21, 2026
193aca0
COMP: Type test_target_platform for strict mypy
hjmjohnson Nov 21, 2026
c786d04
COMP: Type test_tool_resolution_env for strict mypy
hjmjohnson Nov 21, 2026
189072f
COMP: Type test_wheel_builder_utils for strict mypy
hjmjohnson Nov 21, 2026
9064787
COMP: Type test_wheel_packaging for strict mypy
hjmjohnson Nov 21, 2026
0f668d1
COMP: Type test_windows_link_options for strict mypy
hjmjohnson Nov 21, 2026
a582fea
COMP: Type test_windows_wheel_builder for strict mypy
hjmjohnson Nov 21, 2026
b7908b7
COMP: Enable strict mypy for scripts and tests
hjmjohnson Nov 21, 2026
f98492a
STYLE: Add a typed BuildConfig for the wheel build settings
hjmjohnson Nov 21, 2026
cf41477
STYLE: Pass pyproject_configure the three values it reads
hjmjohnson Nov 21, 2026
1316158
ENH: Build from a validated BuildConfig instead of a settings dict
hjmjohnson Nov 21, 2026
6cc5470
ENH: Read and write the build report through a typed, versioned model
hjmjohnson Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ assignees: ""

## Steps to Reproduce


## Expected Behavior

<!-- What should happen. -->
Expand All @@ -28,6 +27,7 @@ assignees: ""
<summary>Log output</summary>

```

```

</details>
Expand Down
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
cooldown:
default-days: 7
groups:
actions:
patterns:
- "*"
30 changes: 30 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Summary

<!-- One or two sentences describing what this PR does and why. -->

## Type of Change

- [ ] Bug fix
- [ ] New feature / enhancement
- [ ] Refactor / cleanup
- [ ] Docs / CI only

## Checklist

- [ ] Pre-commit hooks pass locally (`pre-commit run --all-files`)
- [ ] Tested wheel build on affected platform(s) (Linux / macOS / Windows)
- [ ] Docs updated if behavior changed (`docs/`)
- [ ] Commit messages use ITK prefixes (`BUG:`, `COMP:`, `DOC:`, `ENH:`, `PERF:`, `STYLE:`)

## Platform(s) Tested

<!-- Check all that apply, or note "untested" where applicable. -->

- [ ] Linux x86_64 (manylinux)
- [ ] Linux aarch64 (manylinux)
- [ ] macOS arm64
- [ ] Windows x86_64

## Related Issues

<!-- Closes #... -->
41 changes: 41 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: docs

on:
workflow_dispatch:
pull_request:
paths:
- "docs/**"
- ".readthedocs.yml"
push:
branches: [main]
paths:
- "docs/**"
- ".readthedocs.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r docs/requirements-docs.txt
- name: Build docs
run: sphinx-build -W --keep-going -b html docs docs/_build/html
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: docs-html
path: docs/_build/html
retention-days: 7
26 changes: 26 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: pre-commit

on:
workflow_dispatch:
pull_request:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.11"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
36 changes: 36 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: tests

on:
workflow_dispatch:
pull_request:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --group dev
- name: Run tests
run: python -m pytest
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ lib
lib64
MANIFEST
oneTBB-prefix/
pyproject.toml

# Installer logs
pip-log.txt
Expand All @@ -54,6 +53,9 @@ pip-log.txt
.tox
coverage.xml
htmlcov
.pytest_cache/
.hypothesis/
__pycache__/

# Translations
*.mo
Expand All @@ -73,3 +75,15 @@ docs/_build
# IDE junk
.idea/*
*.swp
/itkVersion.py
# PyPI credentials
.pypirc

# pixi environments
.pixi/*
!.pixi/config.toml

# pixi installer that the Windows entry-point scripts fetch into the
# working directory (make_windows_zip.ps1,
# windows-download-cache-and-build-module-wheels.ps1)
install-pixi.ps1
122 changes: 122 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,121 @@
# Pre-commit configuration for ITKPythonPackage
# Run `pre-commit install` to install git hooks locally
# Run `pre-commit run --all-files` to check all files
# Run `pre-commit autoupdate` to update hook versions

# Exclude generated/vendored directories from all hooks
exclude: ^(\.pixi/|build/|docs/data/|pixi\.lock$)

repos:
# General file hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-added-large-files
args: [--maxkb=500]
stages: [pre-commit]
# Enforce LF line endings everywhere except Windows PowerShell scripts
- id: mixed-line-ending
args: [--fix=lf]
exclude: \.ps1$
stages: [pre-commit]

# Python: linting, import sorting, and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.6
hooks:
- id: ruff-check
exclude: ^docs/
args: [--fix, --show-fixes]
stages: [pre-commit]
- id: ruff-format
exclude: ^docs/
stages: [pre-commit]

# Python: type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.4.1
hooks:
- id: mypy
pass_filenames: false
additional_dependencies: [pytest, hypothesis]
stages: [pre-commit]

# Spelling
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
stages: [pre-commit]

# reStructuredText and Python pattern checks
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
stages: [pre-commit]
- id: rst-directive-colons
stages: [pre-commit]
- id: rst-inline-touching-normal
stages: [pre-commit]

# Python code blocks in the reStructuredText docs; ruff formats the rest
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.20.0
hooks:
- id: blacken-docs
files: ^docs/.*\.rst$
additional_dependencies: [black==24.10.0]
stages: [pre-commit]

# Markdown: formatting
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.10.1
hooks:
- id: prettier
types_or: [markdown]
stages: [pre-commit]

# GitHub Actions: security audit
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.32.0
hooks:
- id: zizmor
stages: [pre-commit]

# Shell: linting
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [pre-commit]

# Shell: formatting
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt
args: [-i, "2", -w]
stages: [pre-commit]

# TOML: formatting
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
stages: [pre-commit]

# ITK commit message hooks (matching ITK/Utilities/Hooks/)
- repo: local
hooks:
- id: local-prepare-commit-msg
Expand All @@ -11,3 +128,8 @@ repos:
entry: 'python3 Utilities/Hooks/kw-commit-msg.py'
language: system
stages: [commit-msg]

ci:
autoupdate_commit_msg: "COMP: Update pre-commit hooks"
autofix_commit_msg: "STYLE: Apply pre-commit fixes"
autoupdate_schedule: monthly
23 changes: 23 additions & 0 deletions .pypirc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .pypirc.example -- DO NOT commit real credentials
# Copy to ~/.pypirc and fill in your token.
#
# Generate a token at: https://pypi.org/manage/account/token/
# For TestPyPI: https://test.pypi.org/manage/account/token/
#
# Alternatively, set environment variables:
# TWINE_USERNAME=__token__
# TWINE_PASSWORD=pypi-<your-token>

[distutils]
index-servers =
pypi
testpypi

[pypi]
username = __token__
password = pypi-YOUR-TOKEN-HERE

[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-YOUR-TOKEN-HERE
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements-docs.txt
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

Loading
Loading