1
0
forked from Mirrors/itch-dl

Fix/disable all linter warnings

This commit is contained in:
Ryszard Knop
2025-04-03 19:03:55 +02:00
parent 7a833a8a5b
commit 5f5f61bffb
6 changed files with 10 additions and 11 deletions

View File

@@ -52,13 +52,13 @@ def process_platform_traits(platforms: list[str]) -> list[str] | None:
traits = set()
for p in platforms:
platform_trait = None
p = p.strip().lower().removeprefix("p_")
p = p.strip().lower().removeprefix("p_") # noqa: PLW2901
if p.startswith("native"):
p = platform.system().lower()
p = platform.system().lower() # noqa: PLW2901
if p.endswith("bsd"):
logging.warning("Note: Native downloads for *BSDs are not available - Linux binaries will be used.")
p = "linux"
p = "linux" # noqa: PLW2901
for key, trait in trait_mapping.items():
if p.startswith(key):