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.
This commit is contained in:
Marty Oehme 2025-06-02 10:02:13 +02:00
parent 59223d1003
commit cf9a25d1c6
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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" },