Skip to content

Commit d108f9a

Browse files
committed
add --no-input to environment pip installs
closes #1802
1 parent c1a3c6b commit d108f9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hatch/env/plugin/interface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,8 @@ def construct_pip_install_command(self, args: list[str]):
768768
A convenience method for constructing a [`pip install`](https://pip.pypa.io/en/stable/cli/pip_install/)
769769
command with the given verbosity. The default verbosity is set to one less than Hatch's verbosity.
770770
"""
771-
command = ['python', '-u', '-m', 'pip', 'install', '--disable-pip-version-check', '--no-python-version-warning']
771+
command = ['python', '-u', '-m', 'pip', 'install', '--disable-pip-version-check', '--no-python-version-warning',
772+
'--no-input']
772773

773774
# Default to -1 verbosity
774775
add_verbosity_flag(command, self.verbosity, adjustment=-1)

0 commit comments

Comments
 (0)