Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/check-pre-commit-hooks.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions nix/general/workflows/check-pre-commit-hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ in
name = "Run pre-commit hooks";
shell = "nix develop .#standards --command bash {0}";
run = "prek --all-files --show-diff-on-failure";
env = {
# On some CI runners, the cache would time out, causing the pipeline to fail.
# Since the official documentation (https://treefmt.com/usage/#ci-integration)
# recommends using `----no-cache` anyway, we add it here.
#
# We do not add `--fail-on-change`, since prek takes care of that
TREEFMT_NO_CACHE = "1";
};
}
];
};
Expand Down