More portable grep invocation in Makefile (#5522)
LGTM - thanks for the fix @bobbyi!
This commit is contained in:
parent
f89b52680b
commit
c5586a1724
2
Makefile
2
Makefile
@ -22,7 +22,7 @@ lint:
|
|||||||
@echo "Running flake8..."
|
@echo "Running flake8..."
|
||||||
flake8 moto tests
|
flake8 moto tests
|
||||||
@echo "Running black... "
|
@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)"
|
@echo "(Make sure you have black-$(black_version) installed, as other versions will produce different results)"
|
||||||
black --check moto/ tests/
|
black --check moto/ tests/
|
||||||
@echo "Running pylint..."
|
@echo "Running pylint..."
|
||||||
|
Loading…
Reference in New Issue
Block a user