Skip to content

Commit

Permalink
correct makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-nhs committed Jul 9, 2024
1 parent f0fdad7 commit 417efd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

guard-%:
@ if [ "${${*}}" = "" ]; then \
echo "Environment variable $* not set"; \
Expand Down Expand Up @@ -110,7 +113,7 @@ lint-node: compile-node
npm run lint --workspace packages/common/testing

lint-samtemplates:
poetry run cfn-lint -I "SAMtemplates/**/*.y*ml" 2>&1 | grep -e "Run scan" -e "W[0-9]" -e "E[0-9]"
poetry run cfn-lint -I "SAMtemplates/**/*.y*ml" 2>&1 | awk '/Run scan/ { print } /^[EW][0-9]/ { print; getline; print }'

lint-python:
poetry run flake8 scripts/*.py --config .flake8
Expand Down

0 comments on commit 417efd1

Please sign in to comment.