Repository navigation
refactor(image): drop vestigial baked bandit - #1120
Merged
Merged
Conversation
The baked `bandit` in `imageTools` was built by nixpkgs against CPython 3.13 while the image toolchain is 3.14, dragging a stray second Python package stack (ddt, stevedore, pyyaml, rich, markdown-it-py, mdurl, pygments, gitpython, gitdb, smmap) plus a full git-minimal (via gitpython) into the closure — ~74 MiB, unused. The committed hooks run the venv bandit via `uv run` (pinned `bandit[toml]==1.9.4`); the sandbox `checks.pre-commit` bandit (nix/hooks.nix) is outside the image closure and untouched. Refs: #1105
c-vigo
force-pushed
the
feature/1105-drop-baked-bandit
branch
from
July 15, 2026 12:55
7d5feaf to
d406a4b
Compare
c-vigo
enabled auto-merge
July 15, 2026 12:56
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.
Summary
Removes
banditfromimageTools. The baked copy was vestigial: the committed.pre-commit-config.yamlrunsuv run bandit(the venv bandit, pinned inpyproject.tomlasbandit[toml]==1.9.4), and the only Nix-bandit consumer isthe sandbox
checks.pre-commitprofile innix/hooks.nix— outside the imageclosure and untouched here.
nixpkgs builds
banditagainst CPython 3.13 while the image toolchain is 3.14,so this one entry dragged in a stray 3.13 package stack (ddt, stevedore, pyyaml,
rich, pygments, gitpython, …) plus a duplicate
git-minimal(52 MiB) viagitpython.
Evidence
.#devkitImageEnvclosure: −78,095,400 bytes (74.5 MiB)nix path-info -r | grep -E 'python3.13-|git-minimal|bandit'→ onlypython3.13-pyflakesremains, anchored solely byactionlint(verified withnix why-depends) — that is Evict the redundant CPython 3.13 interpreter: gitMinimal + actionlint without pyflakes (~127 MiB) #1107's target, not part of the bandit stackchecks.pre-commitstill evaluates (nix eval …pre-commit.drvPathclean);uv run bandit --version→bandit 1.9.4, python 3.14.4test_bandit_installed,EXPECTED_VERSIONSentry) — removal is the intended behaviorprek run --all-files, exit 0), including thesurviving venv bandit hook
Part of epic #1103 (sub-issue 2/5). One of the four anchors of the redundant
CPython 3.13 interpreter; the interpreter itself falls in #1107.
Closes #1105