Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 1, 2025
1 parent 096039c commit 932fd5d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions micropip/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
import builtins
import importlib
import importlib.metadata
from collections.abc import Coroutine
from importlib.metadata import Distribution
from pathlib import Path
from typing import ( # noqa: UP035 List import is necessary due to the `list` method
Any,
List,
)

Expand Down Expand Up @@ -186,7 +184,9 @@ async def install(
await transaction.gather_requirements(requirements)

if transaction.failed:
failed_requirements = ", ".join([f"'{req}'" for req in transaction.failed])
failed_requirements = ", ".join(
[f"'{req}'" for req in transaction.failed]
)
raise ValueError(
f"Can't find a pure Python 3 wheel for: {failed_requirements}\n"
f"See: {FAQ_URLS['cant_find_wheel']}\n"
Expand All @@ -203,7 +203,9 @@ async def install(
)

if package_names:
logger.info("Installing collected packages: %s", ", ".join(package_names))
logger.info(
"Installing collected packages: %s", ", ".join(package_names)
)

# Install PyPI packages
# detect whether the wheel metadata is from PyPI or from custom location
Expand All @@ -222,7 +224,9 @@ async def install(
)
)

packages = [f"{pkg.name}-{pkg.version}" for pkg in pyodide_packages + wheels]
packages = [
f"{pkg.name}-{pkg.version}" for pkg in pyodide_packages + wheels
]

if packages:
logger.info("Successfully installed %s", ", ".join(packages))
Expand Down

0 comments on commit 932fd5d

Please sign in to comment.