diff --git a/Makefile b/Makefile index 39112cce..8a1f3cc0 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ all: $(error please pick a target) # We only want to format and lint checked in python files -CHECKED_IN_PYTHING_FILES := $(shell git ls-files | grep '\.py$$') +CHECKED_IN_PYTHON_FILES := $(shell git ls-files | grep '\.py$$') FLAKE8_OPTIONS := --max-line-length 120 --extend-ignore E203,W503 BLACK_OPTIONS := --line-length 120 @@ -26,22 +26,24 @@ ISORT_OPTIONS := --profile black .PHONY: fmt fmt: @echo "Running black fmt..." - python -m black $(BLACK_OPTIONS) $(CHECKED_IN_PYTHING_FILES) - python -m isort $(ISORT_OPTIONS) $(CHECKED_IN_PYTHING_FILES) + @python -m black $(BLACK_OPTIONS) $(CHECKED_IN_PYTHON_FILES) + @echo "Running isort..." + @python -m isort $(ISORT_OPTIONS) $(CHECKED_IN_PYTHON_FILES) .PHONY: lint lint: flake8 fmt-check .PHONY: fmt-check fmt-check: - @echo "Running black+isort fmt check..." - python -m black $(BLACK_OPTIONS) --check --diff $(CHECKED_IN_PYTHING_FILES) - python -m isort --check --diff $(ISORT_OPTIONS) $(CHECKED_IN_PYTHING_FILES) + @echo "Running black check..." + @python -m black $(BLACK_OPTIONS) --check --diff $(CHECKED_IN_PYTHON_FILES) + @echo "Running isort check..." + @python -m isort --check --diff $(ISORT_OPTIONS) $(CHECKED_IN_PYTHON_FILES) .PHONY: flake8 flake8: @echo "Running flake8 lint..." - python -m flake8 $(FLAKE8_OPTIONS) $(CHECKED_IN_PYTHING_FILES) + @python -m flake8 $(FLAKE8_OPTIONS) $(CHECKED_IN_PYTHON_FILES) .PHONY: test test: