summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/justfile b/justfile
index 813cb43..96fbed8 100644
--- a/justfile
+++ b/justfile
@@ -1,5 +1,8 @@
alias b := build
alias c := check
+alias f := fmt
+alias l := lint
+alias p := pre-commit
alias sw := switch
alias up := upgrade
@@ -17,6 +20,15 @@ build:
check:
nix flake check --impure
+fmt:
+ pre-commit run alejandra && pre-commit run stylua
+
+lint:
+ pre-commit run statix && pre-commit run deadnix
+
+pre-commit:
+ pre-commit run
+
[linux]
switch:
sudo nixos-rebuild switch --impure --flake .