]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
make format
authorShane Jaroch <chown_tee@proton.me>
Wed, 7 Jan 2026 21:22:10 +0000 (16:22 -0500)
committerShane Jaroch <chown_tee@proton.me>
Wed, 7 Jan 2026 21:22:10 +0000 (16:22 -0500)
Makefile

index 8aea4b50defc4250b8ed4b1f2fc07909a626cd85..41ba051efd70e0775146ed3dc20396d338ac2f9f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,19 @@ check/deps:  ##H Verify kcov & shellcheck
        @$(call print_success,Dependencies OK.)
 
 
+
+LINT_LOCS_PY ?= $(shell git ls-files '*.py')
+LINT_LOCS_SH ?=
+
+.PHONY: format
+format:        ##H Format scripts
+       @$(call print_target,format)
+       @$(call print_info,Formatting Python scripts...)
+       shfmt -i 4 -ci -bn -s -w $(LINT_LOCS_SH)
+       -black $(LINT_LOCS_PY)
+       -isort $(LINT_LOCS_PY)
+       @$(call print_success,OK.)
+
 .PHONY: lint
 lint:  ##H Run shellcheck
        # lint install script