From c5586a1724ad65bbe286ddd5c300f4bb7c702f65 Mon Sep 17 00:00:00 2001 From: Bobby Impollonia Date: Mon, 3 Oct 2022 17:28:28 -0400 Subject: [PATCH] More portable grep invocation in Makefile (#5522) LGTM - thanks for the fix @bobbyi! --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..."