Commit Graph
5 Commits
Author SHA1 Message Date
Abdessamad Derraz bc48d4028a fix: key fbneo board roms by their archive
find_bios_sets keyed each BDF_BOARDROM set by its driver name, so the
15 console entries (msx.zip, coleco.zip, gba.zip...) never matched the
hash cache. The archive is now what GetZipName opens, through one
zip_name() that arcade_parent_importer shares. The RomDesc comes from
the struct's RomInfo field and decimal sizes are read: ngp, isgsm,
midssio, channelf, ym2608 and the five DSP sets had no ROM.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 5f18caec31 refactor: put scripts/ on the test path once
tests/__init__ now puts the repository root and scripts/ on sys.path,
so no test module inserts them and every import sits in the import
block. ruff accepts the bare `import tests` the modules keep for its
side effects. The last suppressions go: helper test modules import as
tests.<name>, files open in with blocks, lambdas become functions.
2026-11-17 16:11:23 +01:00
Abdessamad Derraz 057fd2d0f6 fix: isolate every test module however it runs
tests/__init__.py keeps a run offline, its scratch under tmp/ and its
installer cache its own, but only discover -s tests -t . imported it.
discover tests ran with RETROBIOS_OFFLINE unset, scratch on the /tmp
tmpfs and the user's real installer cache, the setting in which e2e
fixtures had written into the shared .cache/large. Every test module now
imports the package first, and a test fails on a module that does not.
test_verify_listing.py took its line with the previous commit.
2026-11-06 15:14:05 +01:00
Abdessamad Derraz 0a272dc4e9 chore: lint and format entire codebase
Run ruff check --fix: remove unused imports (F401), fix f-strings
without placeholders (F541), remove unused variables (F841), fix
duplicate dict key (F601).

Run isort --profile black: normalize import ordering across all files.

Run ruff format: apply consistent formatting (black-compatible) to
all 58 Python files.

3 intentional E402 remain (imports after require_yaml() must execute
after yaml is available).
2026-04-01 13:17:55 +02:00
Abdessamad Derraz 00d7b57884 feat: add FBNeo source parser for BIOS sets 2026-03-30 18:29:06 +02:00