build: migrate to uv, add ruff/ty, format all files#95
Closed
FIrgolitsch wants to merge 508 commits into
Closed
Conversation
Update installation instruction for readme
Update README.md with the new installation instructions.
Fix for creating all mosaic grids
Added changes from sbh-microscope repo into linumpy
The new function detects the galvo shift using the normalized mutual information between the galvo return and the image.
Scripts to perform and apply manual correction to 2.5D volume
… detection/fix to xyzcorr.py
…and refactor volume loading to support JSON configuration
2.5D/3D reconstruction pipelines bug fixes
This was referenced Apr 1, 2026
This was referenced Apr 17, 2026
8c93c45 to
687b26f
Compare
CHrlS98
requested changes
Apr 22, 2026
a48129d to
82b44be
Compare
This was referenced Apr 23, 2026
ce8e35d to
cc75fc8
Compare
This was referenced Apr 28, 2026
cc75fc8 to
c73dce7
Compare
This was referenced Apr 30, 2026
Contributor
Author
|
Superseded by #115 — |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR #95 — Build Tooling & Formatting
Migrates the build system to modern Python tooling and applies consistent formatting across the codebase. Prerequisite for all other stacked PRs (#87, #97–#111).
Build system: setup.py → uv + pyproject.toml
pyproject.toml: project metadata, core deps, optional extras (gpu,gpu-cuda12,gpu-cuda13,docs,dev), entries in[project.scripts]uv.lockfor reproducible resolutionsetup.py,requirements.txt,requirements-pytest.txtDockerfileupdated to use uvLint & format: ruff + ty
[tool.ruff]— target py312, line-length 127, rules E/F/W/I/UP/B/RUF/SIM/C4/PIE/PTH[tool.ruff.lint.isort]—_thread_configin its own section (must import before numpy/jax to set thread caps)[tool.ty]— linumpy-only, py312, cupy/cupyx/numba → Any, relaxed overrides for tests and GPU modules.pre-commit-config.yaml— ruff-format, ruff lint (--fix), ty (advisory / non-blocking)ruff formatapplied to all Python files;ruff check --fixapplied (import ordering, f-strings, type upgrades, PTH replacements where safe)CI & Docker
.github/workflows/python-app.yml—astral-sh/setup-uv@v5,uv sync,uv run ruff,uv run ty,uv run pytestDockerfileswitched from pip to uvOther
linumpy/py.typedmarker.gitignoreadditions for uv / ty caches and local benchmark outputsNotes
[project.scripts]here only contains scripts present at the branch point; each stacked PR adds its own entries