From cf9a25d1c6e9dcad801005f9575bc4c49f733c8e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Jun 2025 10:02:13 +0200 Subject: [PATCH] nvim: Use uv for running python coverage Still needs to be improved and less hardcoded but for now at least we use the tool that I use every day. --- nvim/.config/nvim/lua/plugins/testing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/testing.lua b/nvim/.config/nvim/lua/plugins/testing.lua index 4da2e00..1062823 100644 --- a/nvim/.config/nvim/lua/plugins/testing.lua +++ b/nvim/.config/nvim/lua/plugins/testing.lua @@ -104,7 +104,7 @@ return { }, }, -- TODO: needs to pick up poetry env for python, - -- currently just hard-codes running through poetry + -- currently just hard-codes running through uv { "andythigpen/nvim-coverage", dependencies = { @@ -112,7 +112,7 @@ return { }, config = function() require("coverage").setup({ - lang = { python = { coverage_command = "poetry run coverage json -q -o -" } }, + lang = { python = { coverage_command = "uv run coverage json -q -o -" } }, }) end, ft = { "python" },