From 3738ae79b55bdb3856fd15c6a922a38e89c2b556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Eustace?= Date: Thu, 25 Mar 2021 16:44:59 +0100 Subject: [PATCH] Remove plugin deactivation for the new command --- poetry/console/application.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/poetry/console/application.py b/poetry/console/application.py index e2f9f3b6a3e..d9d9277d274 100644 --- a/poetry/console/application.py +++ b/poetry/console/application.py @@ -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