From fab034394572de67dad2c5bc314753b6f8d5a2b4 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 17 Jan 2026 11:20:15 +0100 Subject: [PATCH 1/2] tools: use ad-hoc flag to lint Nix files Here's what `treefmt --help` documents: `--ci`: Runs `treefmt` in a CI mode, enabling `--no-cache`, `--fail-on-change` and adjusting some other settings best suited to a CI use case. --- .github/workflows/linters.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index ea8805083d4d83..2aead1c1503db5 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -153,7 +153,7 @@ jobs: - name: Lint Nix files run: | nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run ' - treefmt --quiet --fail-on-change + treefmt --ci ' || git --no-pager diff --exit-code lint-py: From e1e9ff6c0d1f24c93e5746dcde44a2ff411a3654 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sat, 17 Jan 2026 11:32:04 +0100 Subject: [PATCH 2/2] fixup! tools: use ad-hoc flag to lint Nix files --- .github/workflows/linters.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 2aead1c1503db5..2d0c8b4ff39ef1 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -153,7 +153,7 @@ jobs: - name: Lint Nix files run: | nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run ' - treefmt --ci + treefmt --quiet --ci ' || git --no-pager diff --exit-code lint-py: