From 968c7a30c4c5f6a641625276aabe022be43fbaa8 Mon Sep 17 00:00:00 2001 From: Haf Date: Tue, 29 Oct 2024 20:12:01 +0100 Subject: [PATCH] feat: yamlfmt for all projects --- .github/workflows/nix-flake-check.yaml | 3 +-- leptos/treefmt.nix | 1 + nix/.github/workflows/nix-flake-check.yaml | 3 +-- nix/treefmt.nix | 1 + rust/.github/workflows/nix-flake-check.yaml | 3 +-- rust/treefmt.nix | 1 + treefmt.nix | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nix-flake-check.yaml b/.github/workflows/nix-flake-check.yaml index 0085ae2..ab6a41e 100644 --- a/.github/workflows/nix-flake-check.yaml +++ b/.github/workflows/nix-flake-check.yaml @@ -3,8 +3,7 @@ on: workflow_dispatch: pull_request: push: - branches: [master, main] - + branches: [master, main] jobs: nix-flake-check: runs-on: ubuntu-latest diff --git a/leptos/treefmt.nix b/leptos/treefmt.nix index a7b9ed0..21e6e3f 100644 --- a/leptos/treefmt.nix +++ b/leptos/treefmt.nix @@ -6,6 +6,7 @@ _: { nixfmt.enable = true; rustfmt.enable = true; taplo.enable = true; + yamlfmt.enable = true; }; settings.formatter = { diff --git a/nix/.github/workflows/nix-flake-check.yaml b/nix/.github/workflows/nix-flake-check.yaml index 0085ae2..ab6a41e 100644 --- a/nix/.github/workflows/nix-flake-check.yaml +++ b/nix/.github/workflows/nix-flake-check.yaml @@ -3,8 +3,7 @@ on: workflow_dispatch: pull_request: push: - branches: [master, main] - + branches: [master, main] jobs: nix-flake-check: runs-on: ubuntu-latest diff --git a/nix/treefmt.nix b/nix/treefmt.nix index 4ad95fc..3a28f20 100644 --- a/nix/treefmt.nix +++ b/nix/treefmt.nix @@ -3,5 +3,6 @@ _: { programs = { nixfmt.enable = true; + yamlfmt.enable = true; }; } diff --git a/rust/.github/workflows/nix-flake-check.yaml b/rust/.github/workflows/nix-flake-check.yaml index 0085ae2..ab6a41e 100644 --- a/rust/.github/workflows/nix-flake-check.yaml +++ b/rust/.github/workflows/nix-flake-check.yaml @@ -3,8 +3,7 @@ on: workflow_dispatch: pull_request: push: - branches: [master, main] - + branches: [master, main] jobs: nix-flake-check: runs-on: ubuntu-latest diff --git a/rust/treefmt.nix b/rust/treefmt.nix index 010e08c..e3edc7a 100644 --- a/rust/treefmt.nix +++ b/rust/treefmt.nix @@ -5,5 +5,6 @@ _: { nixfmt.enable = true; rustfmt.enable = true; taplo.enable = true; + yamlfmt.enable = true; }; } diff --git a/treefmt.nix b/treefmt.nix index 4ad95fc..3a28f20 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -3,5 +3,6 @@ _: { programs = { nixfmt.enable = true; + yamlfmt.enable = true; }; }