1
0
mirror of https://github.com/nix-community/home-manager synced 2024-07-05 12:53:27 +02:00
home-manager/tests/modules/programs/ruff/ruff.nix

24 lines
434 B
Nix
Raw Normal View History

{ ... }:
{
programs.ruff = {
enable = true;
settings = {
line-length = 100;
per-file-ignores = { "__init__.py" = [ "F401" ]; };
lint = {
select = [ "E4" "E7" "E9" "F" ];
ignore = [ ];
};
};
};
test.stubs.ruff = { };
nmt.script = ''
assertFileExists home-files/.config/ruff/ruff.toml
assertFileContent home-files/.config/ruff/ruff.toml ${./expected.toml}
'';
}