mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-04 13:53:37 +09:00
flake: format the tree with one treefmt
The pre-commit hooks kept their own list of formatters, so nixpkgs-fmt in a hook and nixfmt in the check disagreed the moment flake-checks moved. `nix fmt` is now built from the same treefmt module the formatting check is, and the hook and the Makefile both call it.
This commit is contained in:
@@ -109,7 +109,8 @@ prek run --all-files # run hooks on the full tree
|
||||
|
||||
Hooks cover: file hygiene (trailing whitespace, line endings, BOM),
|
||||
syntax validation (JSON/YAML/TOML/XML), merge-conflict markers, private
|
||||
key detection, nixpkgs-fmt, prettier, and `golangci-lint` via
|
||||
key detection, `treefmt` (the same formatter `nix fmt` and the flake's
|
||||
formatting check run), `mdformat` for `docs/`, and `golangci-lint` via
|
||||
`--new-from-rev=HEAD~1` (see the golangci-lint hook in .pre-commit-config.yaml). A manual
|
||||
invocation with an `upstream/main` remote is equivalent:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user