From 977c3ee9c575c7622b6f2de120f28014ce0bbd7b Mon Sep 17 00:00:00 2001 From: Alex Cameron Date: Thu, 21 Jul 2022 15:16:02 +1000 Subject: [PATCH 1/2] Makefile: Make `lint` exit non-zero with unstaged changes Signed-off-by: Alex Cameron --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4c24b5c90..a30623598 100644 --- a/Makefile +++ b/Makefile @@ -47,10 +47,8 @@ lint: isort $(ALL_PY_SRCS) && \ flake8 $(ALL_PY_SRCS) && \ mypy $(PY_MODULE) && \ - bandit -c pyproject.toml -r $(PY_MODULE) -# TODO: Reenable interrogate -# interrogate -v -c pyproject.toml . && \ -# git diff --exit-code + bandit -c pyproject.toml -r $(PY_MODULE) && \ + git diff --exit-code .PHONY: test test: From 1616098912825138902b7c5601230b192e9af2fb Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 21 Jul 2022 10:08:45 -0400 Subject: [PATCH 2/2] Makefile: remove an unnecessary continuation Signed-off-by: William Woodruff --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a30623598..c09b044bb 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,9 @@ lint: isort $(ALL_PY_SRCS) && \ flake8 $(ALL_PY_SRCS) && \ mypy $(PY_MODULE) && \ - bandit -c pyproject.toml -r $(PY_MODULE) && \ - git diff --exit-code + bandit -c pyproject.toml -r $(PY_MODULE) + + git diff --exit-code .PHONY: test test: