From cce89b3188ba3c6a9408ff83133d3727d4781ad9 Mon Sep 17 00:00:00 2001 From: Michael Brewer Date: Fri, 26 Mar 2021 21:18:23 -0700 Subject: [PATCH] build(pre-commit): Add pre-commit to make pr --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index beac0cbcacb..429543b108d 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,10 @@ test: coverage-html: poetry run pytest -m "not perf" --cov=aws_lambda_powertools --cov-report=html -pr: lint test security-baseline complexity-baseline +pre-commit: + pre-commit run --show-diff-on-failure + +pr: lint pre-commit test security-baseline complexity-baseline build: pr poetry build