diff options
| author | seth <[email protected]> | 2023-03-31 10:23:27 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-31 10:23:27 -0400 |
| commit | 86213871311b1ba930bfae1bcae63580810b3205 (patch) | |
| tree | 36433f1b8cd0680a932525d119d4b564c384180a | |
| parent | 8694222ecab6c7cd5b78d44d6cc19246add253d2 (diff) | |
add pre-commit support to justfile
| -rw-r--r-- | justfile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 . |
