This repository formats code with treefmt-nix and runs the formatter as a pre-commit hook through git-hooks.nix.
nix fmtInside nix develop, treefmt is also on your PATH:
treefmt --checknix develop installs the hooks automatically. A commit that needs formatting is aborted. Review the changes, stage them, and commit again.
CI enforces formatting, so run the formatter before you push.
nix/fmt.nix: formattersnix/hooks.nix: git hooks