Skip to content

Commit e7b183d

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

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

backend/src/hatchling/metadata/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def project_metadata_from_core_metadata(core_metadata: str) -> dict[str, Any]:
175175
left, _, right = marker
176176
if left.value == 'extra':
177177
extra = right.value
178-
del markers[i] # noqa: B909
178+
del markers[i]
179179
# If there was only one marker then there will be an unnecessary
180180
# trailing semicolon in the string representation
181181
if not markers:

src/hatch/env/plugin/interface.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,16 @@ 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 = [
772+
'python',
773+
'-u',
774+
'-m',
775+
'pip',
776+
'install',
777+
'--disable-pip-version-check',
778+
'--no-python-version-warning',
779+
'--no-input',
780+
]
772781

773782
# Default to -1 verbosity
774783
add_verbosity_flag(command, self.verbosity, adjustment=-1)

0 commit comments

Comments
 (0)