Skip to content

Commit

Permalink
second try
Browse files Browse the repository at this point in the history
  • Loading branch information
ebehner committed Oct 18, 2023
1 parent bcaa55f commit 17e484d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,19 @@ 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 black --check . || \
python -m isort --check . -s install_api.py -s $(VENV_PATH) --skip-glob dewolf-idioms --skip-glob logic
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

.ONESHELL: format
.PHONY: format
Expand Down

0 comments on commit 17e484d

Please sign in to comment.