From f10fa21d17d32d537e120d5da8df8bbdde4ac808 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 21 Nov 2026 06:45:11 +0100 Subject: [PATCH] docs: split clause semicolons in new comments --- install.ps1 | 2 +- install.py | 2 +- install.sh | 2 +- install/launchers/index.json | 8 ++++---- installer/host_fs.py | 2 +- scripts/resolve/reconcile.py | 2 +- scripts/romrecipes/pool.py | 2 +- tests/mdsections.py | 2 +- tests/test_batocera_md5_list.py | 2 +- tests/test_e2e.py | 2 +- tests/test_gap_settlement.py | 2 +- tests/test_scraper_contract.py | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/install.ps1 b/install.ps1 index 226f320bc..4856c2836 100644 --- a/install.ps1 +++ b/install.ps1 @@ -16,7 +16,7 @@ # and Invoke-WebRequest throws on a cut transfer before the hash is read: # the site's build rewrites this line there (scripts/sitebootstrap.py). $mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that." - $defaultInstallSha256 = "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602" + $defaultInstallSha256 = "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b" # The pin above refuses any changed byte: this cap only stops a body that # cannot be the installer (a sign-in portal's page) before it is hashed. $maximumInstallerBytes = 8MB diff --git a/install.py b/install.py index 107991d02..faf5b1eb5 100644 --- a/install.py +++ b/install.py @@ -1842,7 +1842,7 @@ def read_local_json(path: Path, limit: int) -> object: def write_atomically(path: Path, data: bytes) -> None: """Write data at path through a scratch file beside it, removed when the - write fails; a scratch that cannot be removed is named in the error.""" + write fails. A scratch that cannot be removed is named in the error.""" fd, scratch = tempfile.mkstemp(dir=path.parent, prefix=f".{path.name}.", suffix=".part") try: with os.fdopen(fd, "wb") as handle: diff --git a/install.sh b/install.sh index a93a43c4f..d78a960b7 100755 --- a/install.sh +++ b/install.sh @@ -23,7 +23,7 @@ DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/ins # curl or wget stop on a cut transfer before the hash is read: the site's # build rewrites this line there (scripts/sitebootstrap.py). MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that." -DEFAULT_INSTALL_SHA256="31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602" +DEFAULT_INSTALL_SHA256="9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b" # The pin above refuses any changed byte: this cap only stops a body that # cannot be the installer (a sign-in portal's page) before it is hashed. MAX_INSTALLER_BYTES=8388608 diff --git a/install/launchers/index.json b/install/launchers/index.json index 8487e69a0..cde2121bb 100644 --- a/install/launchers/index.json +++ b/install/launchers/index.json @@ -28,7 +28,7 @@ "dest": "roms/ports/retrobios/install.py", "repo_path": "install.py", "size": 1448904, - "sha256": "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602", + "sha256": "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b", "executable": false }, { @@ -72,7 +72,7 @@ "archive": { "dest": "ARCHIVE/RetroBIOS.muxapp", "size": 1502529, - "sha256": "f4e3bc9d84ef9fd0f40266370f2f0edce67d2ba90e516c2802b018d80d365a47" + "sha256": "f5e68d76e05ceb75c2603a3bf502a0dc2ddeecf9afa6a8be342c651529e238aa" }, "members": [ { @@ -93,7 +93,7 @@ "name": "RetroBIOS/install.py", "repo_path": "install.py", "size": 1448904, - "sha256": "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602", + "sha256": "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b", "executable": false }, { @@ -167,7 +167,7 @@ "dest": ".config/modules/retrobios/install.py", "repo_path": "install.py", "size": 1448904, - "sha256": "31f3475b2205fe40694d232961957a4322dea518d476210b55d2a9e5da10d602", + "sha256": "9a5c17126ec0a23a3733bfa94cf96d260b562552a0a1014116c4ff305e8a7b0b", "executable": false }, { diff --git a/installer/host_fs.py b/installer/host_fs.py index 79dd2d099..d3e233f02 100644 --- a/installer/host_fs.py +++ b/installer/host_fs.py @@ -255,7 +255,7 @@ def read_local_json(path: Path, limit: int) -> object: def write_atomically(path: Path, data: bytes) -> None: """Write data at path through a scratch file beside it, removed when the - write fails; a scratch that cannot be removed is named in the error.""" + write fails. A scratch that cannot be removed is named in the error.""" fd, scratch = tempfile.mkstemp(dir=path.parent, prefix=f".{path.name}.", suffix=".part") try: with os.fdopen(fd, "wb") as handle: diff --git a/scripts/resolve/reconcile.py b/scripts/resolve/reconcile.py index ec50c21e2..81607fade 100644 --- a/scripts/resolve/reconcile.py +++ b/scripts/resolve/reconcile.py @@ -769,7 +769,7 @@ def _attach_runners(systems: dict[str, NativeSystem], scraped: dict | None) -> N libretro = {str(c) for c in declared} if isinstance(declared, list) else set() standalone = {str(c) for c in scraped.get("standalone_cores") or []} # The build decision reads the tagged set (own builds, twins), as the - # pack does; the runner's name is looked up among the plain names. + # pack does. The runner's name is looked up among the plain names. layout_set = standalone_set(scraped) profiles = load_emulator_profiles(str(REPO_ROOT / "emulators")) for system in systems.values(): diff --git a/scripts/romrecipes/pool.py b/scripts/romrecipes/pool.py index 6648f9e06..f84a22ee7 100644 --- a/scripts/romrecipes/pool.py +++ b/scripts/romrecipes/pool.py @@ -38,7 +38,7 @@ class AtomPool: self._built: dict[tuple[tuple[str, str], ...], bytes | None] = {} self.unreadable: list[str] = [] # .variants/ copies (x.zip.1a2b3c4d) hold members no primary holds, - # bbcm.zip.4cc3e25a's fa2b881f among them; primaries answer first. + # bbcm.zip.4cc3e25a's fa2b881f among them. Primaries answer first. archives = (p for p in bios_dir.rglob("*") if is_archive_path(p.name) and p.is_file()) for archive in sorted(archives, key=lambda p: (".variants" in p.parts, p)): try: diff --git a/tests/mdsections.py b/tests/mdsections.py index f262a7956..501e56a6b 100644 --- a/tests/mdsections.py +++ b/tests/mdsections.py @@ -18,7 +18,7 @@ def section(text: str, heading: str, *, stop: int | None = None) -> str: higher (the heading's own level by default). The heading is its text, or the full line with its hashes, which then - fix its level; a trailing ``{ #anchor }`` is optional either way.""" + fix its level. A trailing ``{ #anchor }`` is optional either way.""" title = heading.lstrip("#") hashes = heading[: len(heading) - len(title)] title = title.strip() diff --git a/tests/test_batocera_md5_list.py b/tests/test_batocera_md5_list.py index 3f1841456..6e6d24863 100644 --- a/tests/test_batocera_md5_list.py +++ b/tests/test_batocera_md5_list.py @@ -129,7 +129,7 @@ class RocknixScraper(unittest.TestCase): self.assertIs(entries["scph1001.bin"]["md5_list"], True) def test_altmd5_is_kept_by_every_fork(self): - """checkBios reads altmd5; only the ROCKNIX copy of the reader kept it.""" + """checkBios reads altmd5, and only the ROCKNIX copy of the reader kept it.""" script = SCRIPT.replace('"file": "bios/scph5500.bin"', f'"altmd5": "{A}", "file": "bios/scph5500.bin"') self.assertEqual(self._requirements(script)["scph5500.bin"]["alt_md5"], A) self.assertEqual(_files(_scraped(script))["scph5500.bin"]["alt_md5"], A) diff --git a/tests/test_e2e.py b/tests/test_e2e.py index da28afb85..c09954591 100644 --- a/tests/test_e2e.py +++ b/tests/test_e2e.py @@ -2713,7 +2713,7 @@ class TestE2E(unittest.TestCase): output = buf.getvalue() self.assertIn("test.bin", output) self.assertIn("sha1abc", output) - # The record's path, the one field the schema gives it; a read of + # The record's path, the one field the schema gives it. A read of # "paths" printed nothing. self.assertIn("Path: bios/Mfr/Console/test.bin", output) self.assertEqual(missing, 0) diff --git a/tests/test_gap_settlement.py b/tests/test_gap_settlement.py index 5570bcb8a..05204f08d 100644 --- a/tests/test_gap_settlement.py +++ b/tests/test_gap_settlement.py @@ -100,7 +100,7 @@ class TheRunningBuildPlacesTheGap(unittest.TestCase): class EveryGapReportFoldsCase(unittest.TestCase): """The command line passed folded_slots and the site did not, so the - gaps page listed RetroBat files the CLI report settled; later the CLI + gaps page listed RetroBat files the CLI report settled. Later the CLI passed declared_contents and the site did not, 20 gaps apart. Both take their scope from packs.crossref.global_report_scope.""" diff --git a/tests/test_scraper_contract.py b/tests/test_scraper_contract.py index 89e86726c..3ae57fda3 100644 --- a/tests/test_scraper_contract.py +++ b/tests/test_scraper_contract.py @@ -838,7 +838,7 @@ class UnreadableReleaseStopsTheScrape(unittest.TestCase): def test_emudeck_cheat_sheet_raises(self): """A refused cheat sheet was read as empty and its systems left - emudeck.yml; only a 404 says the sheet is gone.""" + emudeck.yml. Only a 404 says the sheet is gone.""" scraper = emudeck_scraper.Scraper(checkbios_url="pinned", csv_base_url="https://x") with mock.patch("urllib.request.urlopen", self._refuse), self.assertRaises( ConnectionError