The conflict branch calls baseline_verdict before the storage test,
_run_verify_packs unpacks the verdict itself, and the tree walks spell
required_only and seen_parents as test_audit_regressions reads them.
Each resolution stage is its own function, run in the same order with
the same guards and statuses. load_platform_config, _build_layouts,
content_layout and system_core_reach are split the same way, the
re-exports move to the top, declared_hash_verdict takes its declaration
as a typed dict.
generate_pack, generate_emulator_pack, generate_manifest, _main and
the other long functions of generate_pack.py are split by stage. A
platform pack is planned once (_PlatformPlan) and written by
_PlatformPackBuild, whose lookups generate_pack binds; the emulator
pack and the manifest follow the same shape. The destinations a build
has taken live in _Placed.
Public builders keep their names and keyword callers: options past
the eighth parameter are typed with Unpack[TypedDict], read once, and
an unknown key still raises TypeError. The imports at the bottom of
the module move to the top. The pack and manifest bytes are unchanged.
generate_emulator_pack now takes zip_contents by keyword:
pipeline.py:599 and test_verify_emulator_evidence.py:66 pass it by
name. _data_directory_members, _select_variants and
_manifest_core_entries take their options from the 9th argument by
keyword.
pyproject.toml now carries the ruff rule set: pyflakes, the B rules,
simplify, perf, pyupgrade, complexity and size limits. This commit
applies the fixes that change no behavior and the small defects the
first run named:
- tests/test_install.py used argparse without importing it
- three loops rebound the outer `profile` with each layout
(packextras, slots, verify); the loop variable is now `layout`
- profile_sync loops shadowed dataclasses.field
- generate_readme and packextras computed values nothing read
- stale noqa markers for rules the project does not enforce
Complexity, size and the remaining findings are handled next.
Game data is the player's own, and a file the emulator installs for the build that reads it is no gap: neither is listed. A platform entry leaves when every core reading it installs it (validation.deliverable, scoped by the platform's build of each core).
The platform table mixes sets and dicts, so mypy read it as
Collection[Any] and rejected the setdefault and the folder argument
that b3a510995 added. The narrowed folder set is a name of its own,
since it can be None. Nine baseline entries go with it.
File name, size, CRC32, MD5 and SHA1, a header row per system, firmware and required first, filtered by name or hash. Each name links its emulator card, else its setup page. Rows carry no upload button: the drop box does that. wanted.json keeps only what the table and the drop box read.
The wanted list puts firmware first, then game data, labels each row, and leaves out what no one can share (the profile's reason: user written, emulator written, per person). validate_pr.placement() takes a file known by name alone to its system's folder or the directory it declares, never beside a homonym held for another system.
The wanted page lists every file the gaps report lacks, hashless ones included and marked, by system and most useful first, each with its own upload button to the folder validate_pr.placement() gives. Steps from a file in hand to its merge, copy without personal pronouns, list address versioned against stale caches.