Skip to content

Commit

Permalink
fix(docs): Extract rest event handler examples
Browse files Browse the repository at this point in the history
Changes:
- Extract code examples
- Fix python and yaml files
- Run isort and black
- Add make task

Closes:
- aws-powertools#1069

Related:
- aws-powertools#1064
  • Loading branch information
michaelbrewer committed Apr 13, 2022
1 parent b577366 commit 28d9d64
Show file tree
Hide file tree
Showing 33 changed files with 785 additions and 687 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,14 @@ changelog:

mypy:
poetry run mypy --pretty aws_lambda_powertools

format-examples:
poetry run isort docs/examples
poetry run black docs/examples/*/*/*/*.py
poetry run black docs/examples/*/*/*/*/*.py

lint-examples:
poetry run python3 -m py_compile docs/examples/*/*/*/*.py
poetry run python3 -m py_compile docs/examples/*/*/*/*/*.py
cfn-lint docs/examples/*/*/*/*.yml
cfn-lint docs/examples/*/*/*/*/*.yml
Loading

0 comments on commit 28d9d64

Please sign in to comment.