mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
docs: update formatting information
This commit is contained in:
committed by
Austin Horstman
parent
9ea3df74ea
commit
e49a2511fe
@@ -234,10 +234,10 @@ a long description if you wish.
|
||||
|
||||
## Code Style {#sec-code-style}
|
||||
|
||||
The code in Home Manager is formatted by the
|
||||
[nixfmt](https://github.com/serokell/nixfmt/) tool and the formatting is
|
||||
checked in the pull request tests. Run the `format` tool inside the
|
||||
project repository before submitting your pull request.
|
||||
The code in Home Manager is formatted by the [treefmt](https://treefmt.com) tool
|
||||
and the formatting is checked in the pull request tests. Run `nix fmt` or
|
||||
`treefmt` (with required formatters which can be found in `treefmt.toml` in your
|
||||
`$PATH`) inside the project repository before submitting your pull request.
|
||||
|
||||
Keep lines at a reasonable width, ideally 80 characters or less. This
|
||||
also applies to string literals.
|
||||
|
||||
Reference in New Issue
Block a user