From 3e259075e1d2b2ed552531caa1ff1fbe7265e13f Mon Sep 17 00:00:00 2001 From: Eva-Maria Behner Date: Wed, 25 Oct 2023 10:12:28 +0200 Subject: [PATCH] change with end --- Makefile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index a9a273df1..a94105575 100644 --- a/Makefile +++ b/Makefile @@ -39,20 +39,10 @@ else check-format: venv . $(VENV_PATH)/bin/activate endif - python -m black --version - python -m black --check .;\ - if [ $$? -ne 0 ];\ - then \ - echo "Not black formatted"; \ - exit 1;\ - fi - python -m isort --version - python -m isort --check . -s install_api.py -s $(VENV_PATH) --skip-glob dewolf-idioms --skip-glob logic; \ - if [ $$? -ne 0 ];\ - then \ - echo "Not isort formatted"; \ - exit 1;\ - fi + python -m black --version && \ + python -m black --check . && \ + python -m isort --version && \ + python -m isort --check . -s install_api.py -s $(VENV_PATH) --skip-glob dewolf-idioms --skip-glob logic .ONESHELL: format .PHONY: format