Skip to content

Commit

Permalink
Remove plugin deactivation for the new command
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Mar 25, 2021
1 parent 239bc88 commit 2d9f282
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions poetry/console/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,19 +304,7 @@ def _load_plugins(self, io: IO) -> None:
if self._plugins_loaded:
return

from cleo.exceptions import CommandNotFoundException

name = self._get_command_name(io)
command_name = ""
if name:
try:
command_name = self.find(name).name
except CommandNotFoundException:
pass

self._disable_plugins = (
io.input.has_parameter_option("--no-plugins") or command_name == "new"
)
self._disable_plugins = io.input.has_parameter_option("--no-plugins")

if not self._disable_plugins:
from poetry.plugins.plugin_manager import PluginManager
Expand Down

0 comments on commit 2d9f282

Please sign in to comment.