From 32f803d6d161b25e291b4fb058e3c45e362fa559 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:06:58 +0000 Subject: [PATCH 1/2] Initial plan From f058d721a1c394296dab1d41dcae4e46206e8311 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 18:09:06 +0000 Subject: [PATCH 2/2] Honor include_dev_requirements flag in Uv.install() Co-authored-by: MrLYC <6391488+MrLYC@users.noreply.github.com> --- tests/test_uv.py | 9 +++++++++ versifier/uv.py | 3 +++ 2 files changed, 12 insertions(+) diff --git a/tests/test_uv.py b/tests/test_uv.py index 183802e..4caead0 100644 --- a/tests/test_uv.py +++ b/tests/test_uv.py @@ -52,6 +52,15 @@ def test_install(self, mock_check_call: MagicMock) -> None: args = mock_check_call.call_args[0][0] assert "uv" in args assert "sync" in args + assert "--no-dev" in args + + @patch("versifier.uv.check_call") + def test_install_with_dev(self, mock_check_call: MagicMock) -> None: + uv = Uv() + uv.install(include_dev_requirements=True) + mock_check_call.assert_called_once() + args = mock_check_call.call_args[0][0] + assert "--no-dev" not in args @patch("versifier.uv.check_call") def test_install_with_extras(self, mock_check_call: MagicMock) -> None: diff --git a/versifier/uv.py b/versifier/uv.py index 2217236..374f2a1 100644 --- a/versifier/uv.py +++ b/versifier/uv.py @@ -58,6 +58,9 @@ def install( ) -> None: commands = [self.uv_path, "sync"] + if not include_dev_requirements: + commands.append("--no-dev") + if extra_requirements: commands.extend(f"--extra={i}" for i in extra_requirements)