From 4309cc9cddf952776cdbe5b18f839e3e029ce74d Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 24 Oct 2024 14:49:15 +0200 Subject: [PATCH] ci: use treefmt2 with flag --ci Update treefmt to version 2. This adds the following flags for CI usage: "--no-cache, --fail-on-change and adjusting some other settings best suited to a CI". See: https://treefmt.com/usage --- .forgejo/workflows/check.yml | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 0ab15443..34794508 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -10,7 +10,7 @@ jobs: - name: Check formatting run: | - nix --accept-flake-config --access-tokens '' develop --command treefmt --fail-on-change + nix --accept-flake-config --access-tokens '' develop --command treefmt --ci - name: Run flake checks run: | diff --git a/flake.nix b/flake.nix index a417b498..ce29df8a 100644 --- a/flake.nix +++ b/flake.nix @@ -107,7 +107,7 @@ nvfetcher shellcheck shfmt - treefmt + inputs.unstable.legacyPackages.${system}.treefmt2 nixos-generators inputs.unstable.legacyPackages.${system}.opentofu terraform-backend-git