From 35c3e8224a3c026617e87fb50f404fec400f978f Mon Sep 17 00:00:00 2001 From: Daniel Copley Date: Mon, 11 Nov 2024 18:08:18 -0500 Subject: [PATCH] add --no-input to environment pip installs closes #1802 --- src/hatch/env/plugin/interface.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/hatch/env/plugin/interface.py b/src/hatch/env/plugin/interface.py index ab18b77eb..be6fe3055 100644 --- a/src/hatch/env/plugin/interface.py +++ b/src/hatch/env/plugin/interface.py @@ -768,7 +768,16 @@ def construct_pip_install_command(self, args: list[str]): A convenience method for constructing a [`pip install`](https://pip.pypa.io/en/stable/cli/pip_install/) command with the given verbosity. The default verbosity is set to one less than Hatch's verbosity. """ - command = ['python', '-u', '-m', 'pip', 'install', '--disable-pip-version-check', '--no-python-version-warning'] + command = [ + 'python', + '-u', + '-m', + 'pip', + 'install', + '--disable-pip-version-check', + '--no-python-version-warning', + '--no-input', + ] # Default to -1 verbosity add_verbosity_flag(command, self.verbosity, adjustment=-1)