From: Shane Jaroch Date: Fri, 12 Apr 2024 20:40:38 +0000 (-0400) Subject: warn to do a 'git add' when make format changes X-Git-Tag: v0.2.8.dev2~49 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=b08bef48f941702227cbbb809f581c12060f7b78;p=nutratech%2Fcli.git warn to do a 'git add' when make format changes --- diff --git a/Makefile b/Makefile index 860aaf4..ef61085 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,9 @@ format: _venv ## Format with isort & black ifneq ($(CHANGED_FILES_PY),) isort ${CHANGED_FILES_PY} black ${CHANGED_FILES_PY} + -git --no-pager diff --stat + @echo "OK" + @git diff --quiet || echo "NOTE: You may want to run: git add ." else $(info No changed Python files, skipping.) endif