treefmt: remove pipelines, readd editorconfig
This commit is contained in:
parent
f9d153c271
commit
a88a8f7f47
3 changed files with 13 additions and 42 deletions
|
@ -5,7 +5,3 @@ end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
|
|
||||||
[*.age]
|
|
||||||
end_of_line = unset
|
|
||||||
insert_final_newline = unset
|
|
||||||
|
|
|
@ -38,39 +38,24 @@
|
||||||
actionlint = {
|
actionlint = {
|
||||||
command = pkgs.actionlint;
|
command = pkgs.actionlint;
|
||||||
includes = [ ".github/workflows/*.yml" ];
|
includes = [ ".github/workflows/*.yml" ];
|
||||||
pipeline = "yaml";
|
|
||||||
priority = 1;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
deadnix = {
|
editorconfig-checker = {
|
||||||
pipeline = "nix";
|
command = pkgs.editorconfig-checker;
|
||||||
priority = 1;
|
includes = [ "*" ];
|
||||||
|
excludes = [ "*.age" ];
|
||||||
|
priority = 9; # last
|
||||||
};
|
};
|
||||||
|
|
||||||
statix = {
|
# nix
|
||||||
pipeline = "nix";
|
deadnix.priority = 1;
|
||||||
priority = 2;
|
statix.priority = 2;
|
||||||
};
|
nixpkgs-fmt.priority = 3;
|
||||||
|
|
||||||
nixpkgs-fmt = {
|
# python
|
||||||
pipeline = "nix";
|
ruff-check.priority = 1;
|
||||||
priority = 3;
|
ruff-format.priority = 2;
|
||||||
};
|
mypy-tasks.priority = 3;
|
||||||
|
|
||||||
ruff-check = {
|
|
||||||
pipeline = "python";
|
|
||||||
priority = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
ruff-format = {
|
|
||||||
pipeline = "python";
|
|
||||||
priority = 2;
|
|
||||||
};
|
|
||||||
|
|
||||||
mypy-tasks = {
|
|
||||||
pipeline = "python";
|
|
||||||
priority = 3;
|
|
||||||
};
|
|
||||||
|
|
||||||
prettier = {
|
prettier = {
|
||||||
options = [
|
options = [
|
||||||
|
@ -81,8 +66,6 @@
|
||||||
excludes = [
|
excludes = [
|
||||||
"*secrets.yaml"
|
"*secrets.yaml"
|
||||||
];
|
];
|
||||||
pipeline = "yaml";
|
|
||||||
priority = 2;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,14 +98,6 @@
|
||||||
cd ${self}
|
cd ${self}
|
||||||
mkdocs build --strict --site-dir $out
|
mkdocs build --strict --site-dir $out
|
||||||
'';
|
'';
|
||||||
editorconfig = pkgs.runCommand "editorconfig"
|
|
||||||
{
|
|
||||||
buildInputs = [ pkgs.editorconfig-checker ];
|
|
||||||
} ''
|
|
||||||
cd ${self}
|
|
||||||
editorconfig-checker
|
|
||||||
touch $out
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue