diff --git a/rye-devtools/src/rye_devtools/find_downloads.py b/rye-devtools/src/rye_devtools/find_downloads.py index bb7b70bbfa..13e7c083a3 100644 --- a/rye-devtools/src/rye_devtools/find_downloads.py +++ b/rye-devtools/src/rye_devtools/find_downloads.py @@ -134,7 +134,9 @@ async def find(self) -> list[PythonDownload]: async def fetch_indygreg_downloads(self, pages: int = 100) -> list[PythonDownload]: """Fetch all the indygreg downloads from the release API.""" - results: dict[Version, dict[tuple[str, str, str | None], list[PythonDownload]]] = {} + results: dict[ + Version, dict[tuple[str, str, str | None], list[PythonDownload]] + ] = {} for page in range(1, pages): log(f"Fetching indygreg release page {page}") @@ -152,7 +154,12 @@ async def fetch_indygreg_downloads(self, pages: int = 100) -> list[PythonDownloa # For now, we only group by arch and platform, because Rust's PythonVersion doesn't have a notion # of environment. Flavor will never be used to sort download choices and must not be included in grouping. .setdefault( - (download.triple.arch, download.triple.platform, download.triple.environment), [] + ( + download.triple.arch, + download.triple.platform, + download.triple.environment, + ), + [], ) .append(download) ) diff --git a/rye-devtools/src/rye_devtools/find_uv_downloads.py b/rye-devtools/src/rye_devtools/find_uv_downloads.py index b7b4c5e543..11e9418923 100644 --- a/rye-devtools/src/rye_devtools/find_uv_downloads.py +++ b/rye-devtools/src/rye_devtools/find_uv_downloads.py @@ -100,7 +100,11 @@ def render(downloads: list[UvDownload]): version = download.version sha = download.sha256 url = download.url - env = f'Some(Cow::Borrowed("{triple.environment}"))' if triple.environment else "None" + env = ( + f'Some(Cow::Borrowed("{triple.environment}"))' + if triple.environment + else "None" + ) print( f' UvDownload {{arch: Cow::Borrowed("{triple.arch}"), os: Cow::Borrowed("{triple.platform}"), environment: {env}, major: {version.major}, minor: {version.minor}, patch: {version.patch}, suffix: None, url: Cow::Borrowed("{url}"), sha256: Cow::Borrowed("{sha}") }},' )