mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 02:27:52 -06:00
chore: clear the ruff findings in tests
This commit is contained in:
1 parent
382241fb1b
commit
cc028fe7ee
49 files changed
+290
-183
No files matched your search
@@ -135,9 +135,11 @@ class NoPlatformProseInScripts(unittest.TestCase):
|
||||
scripts = REPO_ROOT / "scripts"
|
||||
for path in [scripts / name for name in _RENDERERS] + sorted(scripts.glob("site*.py")):
|
||||
for number, line in enumerate(path.read_text(encoding="utf-8").splitlines(), 1):
|
||||
for match in _PLATFORM_BRANCH.finditer(line):
|
||||
if (match.group(1) or match.group(2)) in platforms:
|
||||
found.append(f"{path.name}:{number}: {line.strip()}")
|
||||
found.extend(
|
||||
f"{path.name}:{number}: {line.strip()}"
|
||||
for match in _PLATFORM_BRANCH.finditer(line)
|
||||
if (match.group(1) or match.group(2)) in platforms
|
||||
)
|
||||
self.assertEqual(found, [], "a guide field says what one platform needs")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user