diff --git a/scripts/dumpcatalog.py b/scripts/dumpcatalog.py index 0dd9d2d3..2a6d469e 100644 --- a/scripts/dumpcatalog.py +++ b/scripts/dumpcatalog.py @@ -6,7 +6,6 @@ opinion on provenance, never an authority: the emulator source is.""" from __future__ import annotations import json -import os from pathlib import Path from artifacts import write_if_changed diff --git a/scripts/generate_site.py b/scripts/generate_site.py index fcc30c0a..cbcb939b 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -26,7 +26,6 @@ import urllib.error import urllib.parse import urllib.request from collections.abc import Callable -from concurrent.futures import ThreadPoolExecutor from datetime import datetime, timezone from pathlib import Path @@ -45,7 +44,6 @@ from common import ( resolve_local_file, resolve_platform_cores, unique_emulator_profiles, - write_if_changed as _write_artifact, yaml_load, ) from cross_reference import FileConsumers @@ -64,10 +62,8 @@ from generate_readme import ( extract_targets, release_totals, ) -from profile_sync import source_ref_values, split_source_ref from provenance_report import build_report, distinct_missing import release_record -import upstream DOCS_DIR = "docs" SITE_NAME = "RetroBIOS" @@ -2794,7 +2790,6 @@ def generate_gap_analysis( 2. Problem files -- missing, untested, hash mismatch 3. Core complement -- emulator files not declared by any platform """ - from cross_reference import cross_reference as run_cross_reference from common import resolve_platform_cores diff --git a/scripts/hashing.py b/scripts/hashing.py index f1b95758..c06e4dad 100644 --- a/scripts/hashing.py +++ b/scripts/hashing.py @@ -6,7 +6,6 @@ frontends check against.""" from __future__ import annotations import hashlib -import os import zipfile import zlib from pathlib import Path diff --git a/scripts/packverify.py b/scripts/packverify.py index fffa361f..b3da663b 100644 --- a/scripts/packverify.py +++ b/scripts/packverify.py @@ -560,7 +560,6 @@ def verify_pack_against_platform( Returns ``(all_ok, checked, present, errors, baseline_checked, baseline_present, core_checked, core_present, baseline_excluded)``. """ - from collections import Counter config = load_platform_config(platform_name, platforms_dir) base_dest = config.get("base_destination", "") diff --git a/scripts/profile_sync.py b/scripts/profile_sync.py index e052033c..7edce262 100644 --- a/scripts/profile_sync.py +++ b/scripts/profile_sync.py @@ -10,7 +10,6 @@ from __future__ import annotations import argparse import bisect -import contextlib import difflib import itertools import json diff --git a/scripts/torrentzip.py b/scripts/torrentzip.py index 8cc1c4a8..e695c2c4 100644 --- a/scripts/torrentzip.py +++ b/scripts/torrentzip.py @@ -25,7 +25,6 @@ from __future__ import annotations import argparse import hashlib import struct -import sys import zipfile import zlib from pathlib import Path diff --git a/tests/test_core_file_fills_declaration.py b/tests/test_core_file_fills_declaration.py index 81e42302..89530dc1 100644 --- a/tests/test_core_file_fills_declaration.py +++ b/tests/test_core_file_fills_declaration.py @@ -11,7 +11,6 @@ from __future__ import annotations import hashlib import contextlib import io -import os import shutil import sys import tempfile diff --git a/tests/test_gap_settlement.py b/tests/test_gap_settlement.py index a985f01c..0646afd9 100644 --- a/tests/test_gap_settlement.py +++ b/tests/test_gap_settlement.py @@ -7,7 +7,6 @@ it. RetroArch names Galaksija's 4 KiB galaksija/rom1.bin, so DOSBox's from __future__ import annotations -import os import sys import unittest from pathlib import Path diff --git a/tests/test_install.py b/tests/test_install.py index 5f535520..bfd39060 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -2032,7 +2032,6 @@ class TargetListFailureIsNotAnAnswer(unittest.TestCase): def test_unreachable_list_is_none(self): import urllib.error - from unittest import mock def boom(*args, **kwargs): raise urllib.error.URLError("timed out") @@ -2043,7 +2042,6 @@ class TargetListFailureIsNotAnAnswer(unittest.TestCase): def test_absent_list_is_empty(self): import urllib.error - from unittest import mock def missing(url, *args, **kwargs): raise urllib.error.HTTPError(url, 404, "Not Found", {}, None) diff --git a/tests/test_path_suffix.py b/tests/test_path_suffix.py index d9174412..d549c64d 100644 --- a/tests/test_path_suffix.py +++ b/tests/test_path_suffix.py @@ -2,7 +2,6 @@ from __future__ import annotations -import json import os import shutil import sys