diff --git a/README.md b/README.md index 2cac291c..d4c7fd62 100644 --- a/README.md +++ b/README.md @@ -221,7 +221,7 @@ functions. -`treefmt-nix` currently supports 103 formatters: +`treefmt-nix` currently supports 104 formatters: * [actionlint](programs/actionlint.nix) * [alejandra](programs/alejandra.nix) @@ -325,6 +325,7 @@ functions. * [typstyle](programs/typstyle.nix) * [yamlfmt](programs/yamlfmt.nix) * [zig](programs/zig.nix) +* [zizmor](programs/zizmor.nix) * [zprint](programs/zprint.nix) diff --git a/examples/formatter-zizmor.toml b/examples/formatter-zizmor.toml new file mode 100644 index 00000000..f3e49849 --- /dev/null +++ b/examples/formatter-zizmor.toml @@ -0,0 +1,6 @@ +# Example generated by ../examples.sh +[formatter.zizmor] +command = "zizmor" +excludes = [] +includes = [".github/workflows/*.yml", ".github/workflows/*.yaml"] +options = [] diff --git a/programs/zizmor.nix b/programs/zizmor.nix new file mode 100644 index 00000000..88ad8ba5 --- /dev/null +++ b/programs/zizmor.nix @@ -0,0 +1,14 @@ +{ mkFormatterModule, ... }: +{ + meta.maintainers = [ ]; + + imports = [ + (mkFormatterModule { + name = "zizmor"; + includes = [ + ".github/workflows/*.yml" + ".github/workflows/*.yaml" + ]; + }) + ]; +}