treefmt: remove pipelines, readd editorconfig

This commit is contained in:
zowoq 2024-05-24 21:58:11 +10:00
parent f9d153c271
commit a88a8f7f47
3 changed files with 13 additions and 42 deletions

View file

@ -5,7 +5,3 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.age]
end_of_line = unset
insert_final_newline = unset

View file

@ -38,39 +38,24 @@
actionlint = {
command = pkgs.actionlint;
includes = [ ".github/workflows/*.yml" ];
pipeline = "yaml";
priority = 1;
};
deadnix = {
pipeline = "nix";
priority = 1;
editorconfig-checker = {
command = pkgs.editorconfig-checker;
includes = [ "*" ];
excludes = [ "*.age" ];
priority = 9; # last
};
statix = {
pipeline = "nix";
priority = 2;
};
# nix
deadnix.priority = 1;
statix.priority = 2;
nixpkgs-fmt.priority = 3;
nixpkgs-fmt = {
pipeline = "nix";
priority = 3;
};
ruff-check = {
pipeline = "python";
priority = 1;
};
ruff-format = {
pipeline = "python";
priority = 2;
};
mypy-tasks = {
pipeline = "python";
priority = 3;
};
# python
ruff-check.priority = 1;
ruff-format.priority = 2;
mypy-tasks.priority = 3;
prettier = {
options = [
@ -81,8 +66,6 @@
excludes = [
"*secrets.yaml"
];
pipeline = "yaml";
priority = 2;
};
};
}

View file

@ -98,14 +98,6 @@
cd ${self}
mkdocs build --strict --site-dir $out
'';
editorconfig = pkgs.runCommand "editorconfig"
{
buildInputs = [ pkgs.editorconfig-checker ];
} ''
cd ${self}
editorconfig-checker
touch $out
'';
};
};