From: Shane Jaroch Date: Wed, 7 Jan 2026 21:22:10 +0000 (-0500) Subject: make format X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=cbde9bc64d2b16d1330e7c4ab0536d3ca38b0fb9;p=gamesguru%2Fgit-remote-gcrypt.git make format --- diff --git a/Makefile b/Makefile index 8aea4b5..41ba051 100644 --- 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