From 86213871311b1ba930bfae1bcae63580810b3205 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 31 Mar 2023 10:23:27 -0400 Subject: add pre-commit support to justfile --- justfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'justfile') 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 . -- cgit v1.2.3