From 167f4f646f2a6c9a1b31d3bfc701423fadd1fd40 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sat, 7 Nov 2026 20:06:45 +0000 Subject: [PATCH] prek: run treefmt hook serially Parallel nix fmt batches time out on treefmt's cache lock. Updates #1926 --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c17c0b211..315bc6dcc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,6 +41,8 @@ repos: name: treefmt entry: nix fmt -- language: system + # Parallel batches time out on treefmt's cache lock. + require_serial: true exclude: ^docs/ types_or: [javascript, jsx, ts, tsx, yaml, json, html, css, scss, sass, markdown, nix]