Skip to content

Commit

Permalink
Update uninstall.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius authored Sep 23, 2024
1 parent 31edd00 commit 71b5560
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pipenv/routines/uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pipenv.patched.pip._internal.build_env import get_runnable_pip
from pipenv.project import Project
from pipenv.routines.lock import do_lock
from pipenv.utils import console

Check failure on line 8 in pipenv/routines/uninstall.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W291)

pipenv/routines/uninstall.py:8:33: W291 Trailing whitespace
from pipenv.utils.dependencies import (
expansive_install_req_from_line,
get_lockfile_section_using_pipfile_category,
Expand All @@ -21,11 +22,11 @@

def _uninstall_from_environment(project: Project, package, system=False):

Check failure on line 23 in pipenv/routines/uninstall.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

pipenv/routines/uninstall.py:1:1: I001 Import block is un-sorted or un-formatted
# Execute the uninstall command for the package
with project.environment.activated() as e:
if not e.ok:
with project.environment.activated() as is_active:
if not is_active:
return False

click.secho(f"Uninstalling {package}...", fg="green", bold=True)
console.print(f"Uninstalling {package}...", style="bold green")
cmd = [
project_python(project, system=system),
get_runnable_pip(),
Expand Down

0 comments on commit 71b5560

Please sign in to comment.