Skip to content

Commit ca4ebed

Browse files
committed
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. PR-URL: #61405 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 828feb2 commit ca4ebed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
- name: Lint Nix files
154154
run: |
155155
nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
156-
treefmt --quiet --fail-on-change
156+
treefmt --quiet --ci
157157
' || git --no-pager diff --exit-code
158158
159159
lint-py:

0 commit comments

Comments
 (0)