Skip to content

Commit

Permalink
add --no-input to environment pip installs
Browse files Browse the repository at this point in the history
closes pypa#1802
  • Loading branch information
djcopley committed Nov 11, 2024
1 parent c1a3c6b commit 35c3e82
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/hatch/env/plugin/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35c3e82

Please sign in to comment.