nix-community.nixvim/tests/test-sources/plugins/by-name/neotest/python.nix

31 lines
602 B
Nix
Raw Normal View History

2023-11-22 09:38:52 +01:00
{
2025-03-04 10:09:08 +01:00
example = {
2023-11-22 09:38:52 +01:00
plugins = {
treesitter.enable = true;
neotest = {
enable = true;
adapters.python = {
enable = true;
settings = {
dap.justMyCode = false;
2024-05-05 19:39:35 +02:00
args = [
"--log-level"
"DEBUG"
];
2023-11-22 09:38:52 +01:00
runner = "pytest";
python = ".venv/bin/python";
is_test_file.__raw = ''
function(file_path)
return true
end
'';
pytest_discover_instances = true;
};
};
};
};
};
}