More portable grep invocation in Makefile (#5522)

LGTM - thanks for the fix @bobbyi!
This commit is contained in:
Bobby Impollonia 2022-10-03 17:28:28 -04:00 committed by GitHub
parent f89b52680b
commit c5586a1724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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..."