Skip to content

Commit

Permalink
Enable ruff lint and fix 2 extras logging using + concatenation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Aug 26, 2024
1 parent 3a5b4df commit 21c566c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micropip/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async def install(
]

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

wheel_promises: list[Coroutine[Any, Any, None] | asyncio.Task[Any]] = []
# Install built-in packages
Expand All @@ -182,6 +182,6 @@ async def install(
]

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

importlib.invalidate_caches()
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ select = [
"UP", # pyupgrade
"I", # isort
"PGH", # pygrep-hooks
"G", # flake8-logging-format
]
# Remove E999 once pattern matching is supported
# https://github.com/charliermarsh/ruff/issues/282
Expand Down

0 comments on commit 21c566c

Please sign in to comment.