mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
1bd1e86464
ruff is Python linter and code formatter, written in Rust. See <https://docs.astral.sh/ruff/>.
23 lines
434 B
Nix
23 lines
434 B
Nix
{ ... }:
|
|
|
|
{
|
|
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}
|
|
'';
|
|
}
|