diff options
author | EuAndreh <eu@euandre.org> | 2023-02-22 11:29:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-22 11:30:19 -0300 |
commit | 81df90262e350fa316dc73a73947ac9a0e9dda28 (patch) | |
tree | 6d7da1db081f6db0de602da11ef98a82596cc7e6 | |
parent | etc/nix/configuration.nix: Tidy up extra comments (diff) | |
download | dotfiles-81df90262e350fa316dc73a73947ac9a0e9dda28.tar.gz dotfiles-81df90262e350fa316dc73a73947ac9a0e9dda28.tar.xz |
Makefile: Add "check-nixfmt" target
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | etc/guix/home.scm | 1 |
2 files changed, 7 insertions, 3 deletions
@@ -92,6 +92,9 @@ check-perlcritic: xargs awk '/^#!\/usr\/bin\/env perl$$/ { print FILENAME } { nextfile }' | \ xargs perlcritic --exclude=subroutine +check-nixfmt: + git ls-files | sor 'test -f' | grep -E '\.nix$$' | xargs nixfmt -c + FIXME-excludes = \ ':(exclude)Makefile' \ ':(exclude)etc/git/ignore' \ @@ -139,9 +142,9 @@ check-sync: exit 1; \ fi -check: check-shellcheck check-perlcritic check-fixme check-dirty-public \ - check-dirty-private check-dirty-pass check-opt check-pod \ - check-sync +check: check-shellcheck check-perlcritic check-nixfmt check-fixme \ + check-dirty-public check-dirty-private check-dirty-pass \ + check-opt check-pod check-sync @cd $(PRIV_CONFIG) && $(MAKE) $@ clean: diff --git a/etc/guix/home.scm b/etc/guix/home.scm index a84a2a0..f81b0cd 100644 --- a/etc/guix/home.scm +++ b/etc/guix/home.scm @@ -352,6 +352,7 @@ pv ;; telnet httpd ;; for htpasswd + nixfmt ;; for compiling ECL libatomic-ops |