File tree Expand file tree Collapse file tree
doc/src/content/docs/patterns/formatting Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ nix flake init -t github:akirak/flake-templates#flake-utils
5555
5656### [ flake-parts] ( flake-parts/flake.nix )
5757
58- This is a boilerplate based on [ flake-parts] ( https://flake.parts/ ) .
58+ This is a boilerplate based on [ flake-parts] ( https://flake.parts/ ) . It also
59+ includes a basic [ treefmt-nix] ( https://github.com/numtide/treefmt-nix )
60+ configuration, so you can run ` nix fmt ` and formatting checks out of the box.
5961
6062``` bash
6163nix flake init -t github:akirak/flake-templates#flake-parts
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ title: Checking formatting using treefmt-nix on GitHub Actions
77This tutorial explains how to check formatting on GitHub Actions using
88[treefmt-nix](https://github.com/numtide/treefmt-nix).
99## Add a treefmt-nix configuration
10- Some of the flake templates, including `treefmt`, integrates treefmt-nix out of
11- the box. You don't have to add a configuration in this case.
10+ Some of the flake templates, including `treefmt` and `flake-parts`, integrate
11+ treefmt-nix out of the box. You don't have to add a configuration in this
12+ case.
1213
1314Otherwise, please add a configuration to your flake manually by consulting [the
1415documentation](https://github.com/numtide/treefmt-nix?tab=readme-ov-file#flakes).
You can’t perform that action at this time.
0 commit comments