#!/usr/bin/env bash nix fmt . git diff --exit-code || { echo "Formatter changed files — review with 'git diff', then re-stage and commit." exit 1 }