Add treefmt for code formatting

This commit is contained in:
Daniel Lundin 2024-10-21 23:41:27 +02:00
parent 508bbd316e
commit a8bbb068a2
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
3 changed files with 55 additions and 16 deletions

View file

@ -10,11 +10,11 @@ check:
# Lint all source code
lint:
echo FIXME: Add linter(s) here
cargo clippy
# Format all source code
fmt:
echo FIXME: Add formatter here
nix fmt
# Update all dependencies
update: update-nix-pkgs update-rust-deps