2024-09-15 12:05:05 -05:00
|
|
|
{ lib, pkgs, ... }:
|
2023-11-22 09:38:52 +01:00
|
|
|
{
|
2024-09-15 12:05:05 -05:00
|
|
|
# TODO: added 2024-09-15
|
|
|
|
# TODO: Re-enable when upstream builds in darwin sandbox
|
|
|
|
example = lib.mkIf pkgs.stdenv.isLinux {
|
2023-11-22 09:38:52 +01:00
|
|
|
plugins = {
|
|
|
|
treesitter.enable = true;
|
|
|
|
neotest = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
adapters.python = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
dap.justMyCode = false;
|
|
|
|
args = [
|
|
|
|
"--log-level"
|
|
|
|
"DEBUG"
|
|
|
|
];
|
|
|
|
runner = "pytest";
|
|
|
|
python = ".venv/bin/python";
|
|
|
|
is_test_file.__raw = ''
|
|
|
|
function(file_path)
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
pytest_discover_instances = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|