Skip to content

Commit 28d9d64

Browse files
committed
fix(docs): Extract rest event handler examples
Changes: - Extract code examples - Fix python and yaml files - Run isort and black - Add make task Closes: - aws-powertools#1069 Related: - aws-powertools#1064
1 parent b577366 commit 28d9d64

33 files changed

+785
-687
lines changed

Diff for: Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,14 @@ changelog:
9090

9191
mypy:
9292
poetry run mypy --pretty aws_lambda_powertools
93+
94+
format-examples:
95+
poetry run isort docs/examples
96+
poetry run black docs/examples/*/*/*/*.py
97+
poetry run black docs/examples/*/*/*/*/*.py
98+
99+
lint-examples:
100+
poetry run python3 -m py_compile docs/examples/*/*/*/*.py
101+
poetry run python3 -m py_compile docs/examples/*/*/*/*/*.py
102+
cfn-lint docs/examples/*/*/*/*.yml
103+
cfn-lint docs/examples/*/*/*/*/*.yml

0 commit comments

Comments
 (0)