From 10d5234c02faea332afa6eeccbaa7520fcccf4e0 Mon Sep 17 00:00:00 2001 From: jelmert Date: Tue, 15 Apr 2025 09:53:57 +0200 Subject: [PATCH] Add --no-sync to `uv add` commands --- hooks/post_gen_project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 8b207e2ed..59bb534ae 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -529,14 +529,14 @@ def setup_dependencies(): # Install production dependencies try: - subprocess.run(uv_cmd + ["add", "-r", "requirements/production.txt"], check=True) + subprocess.run(uv_cmd + ["add", "--no-sync", "-r", "requirements/production.txt"], check=True) except subprocess.CalledProcessError as e: print(f"Error installing production dependencies: {e}", file=sys.stderr) sys.exit(1) # Install local (development) dependencies try: - subprocess.run(uv_cmd + ["add", "--dev", "-r", "requirements/local.txt"], check=True) + subprocess.run(uv_cmd + ["add", "--no-sync", "--dev", "-r", "requirements/local.txt"], check=True) except subprocess.CalledProcessError as e: print(f"Error installing local dependencies: {e}", file=sys.stderr) sys.exit(1)