mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
CONTRIBUTING: list nix fmt first among formatter commands (#556421)
This commit is contained in:
@@ -587,9 +587,9 @@ CI [enforces](./.github/workflows/lint.yml) all Nix files to be formatted using
|
||||
|
||||
You can ensure this locally using either of these commands:
|
||||
```
|
||||
nix-shell --run treefmt
|
||||
nix develop --command treefmt
|
||||
nix fmt
|
||||
nix develop --command treefmt
|
||||
nix-shell --run treefmt
|
||||
```
|
||||
|
||||
If you're starting your editor in `nix-shell` or `nix develop`, you can also set it up to automatically run `treefmt` on save.
|
||||
|
||||
Reference in New Issue
Block a user