Skip to content

Commit b3f459c

Browse files
committed
move uv config to uv-flags option
1 parent 856333e commit b3f459c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hatch_uvenv/plugin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ def add_group_flags(self, command):
163163
def add_extra_flags(self, command):
164164
command.extend([f"--extra={feature}" for feature in self.features])
165165

166+
def add_uv_flags(self, command):
167+
command.extend(self.config.get("uv-flags", []))
168+
166169
def remove(self):
167170
self.virtual_env.remove()
168171
self.build_virtual_env.remove()
@@ -200,7 +203,7 @@ def command_context(self):
200203
yield
201204

202205
def construct_pip_install_command(self, args: list[str]):
203-
command = ["uv", "sync", "--active", "--all-packages"]
206+
command = ["uv", "sync", "--active"]
204207

205208
# Default to -1 verbosity
206209
add_verbosity_flag(command, self.verbosity, adjustment=-1)

0 commit comments

Comments
 (0)