Skip to content

Commit d9e4dc4

Browse files
enhanced portability and robustness; fixed isort; be more verbose
1 parent cd9f478 commit d9e4dc4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PIPENV=pipenv
99

1010
DATE:=$(shell date +"%Y-%m-%d")
1111
VERSION=$(shell $(PYTHON) -c 'import things_cli; print(things_cli.__version__)')
12+
SHELL := /usr/bin/env bash -euo pipefail -c
1213

1314
help: ## Print help for each target
1415
$(info Things low-level Python CLI.)
@@ -50,10 +51,13 @@ clean: ## Cleanup
5051
@rm -f .coverage
5152

5253
auto-style: ## Style the code
53-
@if type isort >/dev/null 2>&1 ; then isort . ; \
54+
@echo "isort..."
55+
@if type isort >/dev/null 2>&1 ; then isort -rc . ; \
5456
else echo "SKIPPED. Run '$(PIP) install isort' first." >&2 ; fi
57+
@echo "autoflake..."
5558
@if type autoflake >/dev/null 2>&1 ; then autoflake -r --in-place --remove-unused-variables . ; \
5659
else echo "SKIPPED. Run '$(PIP) install isort' first." >&2 ; fi
60+
@echo "black..."
5761
@if type black >/dev/null 2>&1 ; then black $(SRC_CORE) ; \
5862
else echo "SKIPPED. Run '$(PIP) install black' first." >&2 ; fi
5963

0 commit comments

Comments
 (0)