Switch to bats over pytest

This removes python entirely from the stack.
Yet to run the tests on macOS, but they're buildable by way of nix
wrapping. Worst case scenario, you cannot run them from the devshell
but `nix run .#test-runner-<latest||stable>` should work okay.
This commit is contained in:
Bryan Bennett 2025-08-09 08:47:06 -04:00
parent 445dc9ffc6
commit c59b60e747
23 changed files with 344 additions and 385 deletions

View file

@ -12,9 +12,6 @@
programs = {
deadnix.enable = true;
deno.enable = true;
mypy.enable = true;
ruff.check = true;
ruff.format = true;
nixfmt.enable = true;
nixfmt.package = pkgs.nixfmt-rfc-style;
shellcheck.enable = true;
@ -24,8 +21,16 @@
};
settings.formatter = {
shellcheck.includes = [ "direnvrc" ];
shfmt.includes = [ "direnvrc" ];
shellcheck.includes = [
"direnvrc"
"tests/*.bash"
"tests/*.bats"
];
shfmt.includes = [
"direnvrc"
"tests/*.bash"
"tests/*.bats"
];
};
};
};