formatter: remove script, add treefmt.toml + keep-sorted (#7056)

currently ./format does a bunch of stuff with git that was only necessary for nixfmt but not nixfmt-tree, so I deleted it (just use treefmt command directly instead). I also added keep sorted to keep the really long module lists sorted (already used in nixpkgs).
This commit is contained in:
awwpotato 2025-05-20 10:42:51 -07:00 committed by GitHub
parent 559f6d36b3
commit 3f591550a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 494 additions and 503 deletions

View file

@ -23,7 +23,7 @@ jobs:
exit 1
fi
- run: nix-build --show-trace -A docs.jsonModuleMaintainers
- run: ./format --ci
- run: nix fmt -- --ci
- run: nix-shell --show-trace . -A install
- run: yes | home-manager -I home-manager=. uninstall
- name: Run tests