Commit Graph
5400 Commits
Author SHA1 Message Date
Abdessamad Derraz 0809dfd6bf chore: merge the pack builder quality work 2026-11-17 09:16:46 +01:00
Abdessamad Derraz c13dfb5df5 refactor: quote the pack type aliases
The aliases under TYPE_CHECKING hold no union a 3.9 parser would
evaluate, and two docstrings drop their clause semicolons.
2026-11-17 09:15:44 +01:00
Abdessamad Derraz d7783cfbe4 chore: merge the test suite lint work 2026-11-17 08:54:30 +01:00
Abdessamad Derraz c92c14ef44 chore: merge the tooling scripts quality work 2026-11-17 08:26:04 +01:00
Abdessamad Derraz 1acfd8b812 feat: let type-checking imports pass the deps test 2026-11-17 08:25:40 +01:00
Abdessamad Derraz fe243ce8a8 chore: lint and type the remaining tools 2026-11-17 08:25:26 +01:00
Abdessamad Derraz 54521380dc refactor: split long functions of the tools 2026-11-17 08:25:26 +01:00
Abdessamad Derraz ddcdd14cca refactor: split build_setups by folder 2026-11-17 08:25:26 +01:00
Abdessamad Derraz ecc30d396f refactor: split core_probe argument checks 2026-11-17 08:25:26 +01:00
Abdessamad Derraz 3764e77e92 refactor: type documents validate_schemas reads 2026-11-17 08:25:26 +01:00
Abdessamad Derraz 89e186c18b refactor: split validate_file by stage 2026-11-17 08:25:19 +01:00
Abdessamad Derraz fa5c02fb66 refactor: split campaign checks by stage 2026-11-17 08:25:19 +01:00
Abdessamad Derraz f2fd49a9c9 refactor: share now_iso and the pack size label 2026-11-17 08:25:10 +01:00
Abdessamad Derraz f36a95bdcc docs: keep shell reader docstrings in house style 2026-11-17 08:10:24 +01:00
Abdessamad Derraz 2a92089d92 refactor: split packextras by stage 2026-11-17 08:02:39 +01:00
Abdessamad Derraz de2cd60583 refactor: split the pack readme by section 2026-11-17 08:02:39 +01:00
Abdessamad Derraz add67da611 refactor: keep the anchors the source tests read
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.
2026-11-17 07:57:59 +01:00
Abdessamad Derraz fe25a7caa0 refactor: tidy packpaths and torrentzip returns 2026-11-17 07:56:09 +01:00
Abdessamad Derraz 59941727ee refactor: split preferred_entries by choice 2026-11-17 07:56:08 +01:00
Abdessamad Derraz 2f2d390c34 refactor: split safe_extract_zip by check 2026-11-17 07:56:08 +01:00
Abdessamad Derraz de6b01eb73 refactor: split pack verification by stage 2026-11-17 07:56:08 +01:00
Abdessamad Derraz e2b3daff63 chore: merge the scraper quality work 2026-11-17 07:51:58 +01:00
Abdessamad Derraz 338d1cc7b9 refactor: split the pack and manifest builders
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.
2026-11-17 07:48:08 +01:00
Abdessamad Derraz 98e871124b chore: merge the profile_sync quality work 2026-11-17 07:44:52 +01:00
Abdessamad Derraz 60a72ac0c6 refactor: split build_report and writers by stage 2026-11-17 07:44:07 +01:00
Abdessamad Derraz 29c75f21a2 chore: type the json answers read by upstream 2026-11-17 07:44:07 +01:00
Abdessamad Derraz a6bc592c24 refactor: split prose run scanning by stage 2026-11-17 07:44:07 +01:00
Abdessamad Derraz 27ee267431 refactor: split version_basis.read by basis kind 2026-11-17 07:44:06 +01:00
Abdessamad Derraz 7905729c18 refactor: type and split dat importers 2026-11-17 07:39:30 +01:00
Abdessamad Derraz 4fdc100197 refactor: type romfolders and hash tooling 2026-11-17 07:35:02 +01:00
Abdessamad Derraz 9af72a1ffb refactor: split scraper cli and platform scrapers 2026-11-17 07:35:02 +01:00
Abdessamad Derraz fbf7ae826d refactor: type and split recalbox launchers 2026-11-17 07:33:36 +01:00
Abdessamad Derraz ddcbbe5c0b refactor: pass zip_contents by name in a test 2026-11-17 07:33:19 +01:00
Abdessamad Derraz e6c5b78a64 refactor: type and split shell launchers 2026-11-17 07:31:37 +01:00
Abdessamad Derraz d62c314f33 refactor: type and split configgen launchers 2026-11-17 07:31:02 +01:00
Abdessamad Derraz 34eee3f087 refactor: drop dead scraper import fallbacks 2026-11-17 07:23:39 +01:00
Abdessamad Derraz cc028fe7ee chore: clear the ruff findings in tests 2026-11-17 07:21:28 +01:00
Abdessamad Derraz 382241fb1b refactor: split long test functions by stage 2026-11-17 07:21:12 +01:00
Abdessamad Derraz 896416b333 refactor: name generate_pack arguments in tests 2026-11-17 07:21:12 +01:00
Abdessamad Derraz 9bb8d89acd chore: keep the runtime python floor guards 2026-11-17 07:13:44 +01:00
Abdessamad Derraz 0890cb3b60 chore: merge main into the lint work 2026-11-17 07:10:45 +01:00
Abdessamad Derraz 4e9f7673a2 chore: merge main for the ruff config 2026-11-17 07:09:56 +01:00
Abdessamad Derraz 3e732fd57e chore: merge origin main into the lint work 2026-11-17 07:09:55 +01:00
Abdessamad Derraz 4eacb6ff39 chore: lint scripts and tests with ruff
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.
2026-11-17 07:07:48 +01:00
Abdessamad Derraz ac37802e20 feat: keep game data out of the wanted list
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).
2026-11-17 03:14:42 +01:00
Abdessamad Derraz 6c03dd07ee chore: type the placement tables of validate_pr
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.
2026-11-13 20:47:25 +01:00
Abdessamad Derraz b1e8de7124 feat: show the wanted list as a plain table
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.
2026-11-13 19:54:20 +01:00
Abdessamad Derraz 6ce6469d25 feat: rank unread platform files after firmware
A file a platform lists and no core it runs reads (verify's unread category) comes after firmware and before game data, labelled on its row.
2026-11-13 19:00:17 +01:00
Abdessamad Derraz 8ae4cb61ac chore: merge main into the wanted page work 2026-11-13 18:34:26 +01:00
Abdessamad Derraz b3a5109955 fix: place hashless files by their own system
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.
2026-11-13 18:34:13 +01:00