summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-31 10:23:27 -0400
committerseth <[email protected]>2023-03-31 10:23:27 -0400
commit86213871311b1ba930bfae1bcae63580810b3205 (patch)
tree36433f1b8cd0680a932525d119d4b564c384180a
parent8694222ecab6c7cd5b78d44d6cc19246add253d2 (diff)
add pre-commit support 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 .