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