diff --git a/Makefile b/Makefile index 84f475f71..198adadcb 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ lint: @echo "Running flake8..." flake8 moto tests @echo "Running black... " - $(eval black_version := $(shell grep -oP "(?<=black==).*" requirements-dev.txt)) + $(eval black_version := $(shell grep "^black==" requirements-dev.txt | sed "s/black==//")) @echo "(Make sure you have black-$(black_version) installed, as other versions will produce different results)" black --check moto/ tests/ @echo "Running pylint..."