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 Jan 20, 2024
1 parent 607d7ed commit 315a103
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/poetry/utils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ def activate(self, env: VirtualEnv) -> int | None:
if self._name == "zsh":
# Under ZSH the source command should be invoked in zsh's bash emulator
quoted_activate_path = shlex.quote(str(activate_path))
c.sendline(
f"emulate bash -c {shlex.quote(f'. {quoted_activate_path}')}"
)
c.sendline(f"emulate bash -c {shlex.quote(f'. {quoted_activate_path}')}")
elif self._name == "xonsh":
c.sendline(f"vox activate {shlex.quote(str(env.path))}")
elif self._name in ["nu", "fish"]:
Expand Down

0 comments on commit 315a103

Please sign in to comment.