Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): extract code snippets into dedicated python files and fix examples #1065

Closed
wants to merge 66 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
5bd027b
doc(data-classes): code snippets into dedicated python files
michaelbrewer Mar 7, 2022
c0df2a3
docs(app-sync): move snippers out for appsync
michaelbrewer Mar 8, 2022
e7918fe
doc(api-gw): Move snippets and fix template.yml
michaelbrewer Mar 8, 2022
be8ec32
doc(api-gw): extract more examples
michaelbrewer Mar 8, 2022
6c6ee63
fix(docs): Correct response and add more examples
michaelbrewer Mar 8, 2022
f7a067b
docs(rest-api): Add more examples
michaelbrewer Mar 8, 2022
b66a2d9
docs(rest-api): Add routes examples
michaelbrewer Mar 8, 2022
ab246cc
feat(rest-api): Complete examples
michaelbrewer Mar 8, 2022
0cadb7d
docs(tutorial): Extract examples
michaelbrewer Mar 9, 2022
029a45d
docs(tutorial): Extract examples
michaelbrewer Mar 9, 2022
0945547
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Mar 9, 2022
eeb7c04
docs: Refactor to ease develop
michaelbrewer Mar 9, 2022
4571402
docs(validator): Fix name for example and move examples out to files
michaelbrewer Mar 9, 2022
7d745fe
doc(jmespath): Fix examples and extract
michaelbrewer Mar 10, 2022
d1940e1
docs(typing): Extract examples
michaelbrewer Mar 10, 2022
c5a1207
docs(middleware_factory): Extract examples
michaelbrewer Mar 10, 2022
dcd3daf
chore: correct line highlights
michaelbrewer Mar 10, 2022
cd71280
docs(tracer): Extract code examples
michaelbrewer Mar 10, 2022
b987c5a
docs(metrics): Extract examples
michaelbrewer Mar 10, 2022
41ec5e5
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Mar 10, 2022
e982eda
docs(metrics): Extract python examples
michaelbrewer Mar 11, 2022
91918e1
docs(logger): Extract examples
michaelbrewer Mar 11, 2022
99c9ac8
docs(logger): Extract examples
michaelbrewer Mar 11, 2022
ed45b4f
docs(logger): Extract examples
michaelbrewer Mar 11, 2022
7997c92
docs(logger): Extract remaining examples
michaelbrewer Mar 11, 2022
f5476e4
docs(general): correct directory structure
michaelbrewer Mar 12, 2022
21f8376
docs(logger): better filename for extracted examples
michaelbrewer Mar 13, 2022
c25ceeb
docs(logger): Better shared logger file names
michaelbrewer Mar 13, 2022
48f45c7
docs(batch): Extract code examples
michaelbrewer Mar 13, 2022
a1d5e5c
fix(batch): Correct Pydantic integration examples
michaelbrewer Mar 13, 2022
d57aff6
docs(batch): Correct Accessing processed messages examples
michaelbrewer Mar 13, 2022
e25f427
fix(batch): Fix Extending BatchProcessor example
michaelbrewer Mar 13, 2022
51d4e85
fix(docs): fix Creating a custom batch processor
michaelbrewer Mar 13, 2022
37372f4
fix(docs): batch Testing your code
michaelbrewer Mar 13, 2022
279780f
fix(docs): Fix Customizing boto configuration
michaelbrewer Mar 13, 2022
45b2491
docs(parameters): Extract examples and fixes
michaelbrewer Mar 13, 2022
9b96fc3
docs(parameter): Extract more examples
michaelbrewer Mar 13, 2022
e17d0a3
doc(parameter): extract examples
michaelbrewer Mar 13, 2022
bb2ee28
fix(docs): Fix template yml
michaelbrewer Mar 13, 2022
aa2292e
docs(idempotency): Add bring your own examples
michaelbrewer Mar 13, 2022
361fd7d
fix(idempotency): Python syntax error
michaelbrewer Mar 13, 2022
6215b20
fix(docs): Fix syntax error
michaelbrewer Mar 13, 2022
10c1cd5
fix(docs): Fix syntax error
michaelbrewer Mar 13, 2022
bd86cec
docs(idempotency): Extract code examples
michaelbrewer Mar 13, 2022
1d73f9b
docs(feature_flags): Extract code examples
michaelbrewer Mar 14, 2022
8a62e55
docs(index): Extract and fix examples
michaelbrewer Mar 14, 2022
2c8e7a7
docs(parser): Extract examples and fixes
michaelbrewer Mar 14, 2022
78c1d7d
docs(parser): Extract examples
michaelbrewer Mar 14, 2022
4e00e14
docs(parser): Extract examples
michaelbrewer Mar 14, 2022
b1bf128
docs(index): Extract and fix sam templates
michaelbrewer Mar 14, 2022
2055d66
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Mar 16, 2022
edb858b
Merge branch 'develop' into docs/1064
michaelbrewer Mar 18, 2022
65d4ea3
chore: sync up with latest version
michaelbrewer Mar 18, 2022
670d24f
Merge branch 'develop' into docs/1064
michaelbrewer Apr 2, 2022
5bd7668
chore: synup lambda version
michaelbrewer Apr 2, 2022
c8379a6
chore: bump powertools version
michaelbrewer Apr 2, 2022
041af09
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Apr 5, 2022
99f2bca
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Apr 5, 2022
342ce63
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Apr 8, 2022
146577e
Merge branch 'develop' into docs/1064
michaelbrewer Apr 9, 2022
6f9ab90
chore: update layer version
michaelbrewer Apr 9, 2022
49329f8
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Apr 12, 2022
51ddc84
Merge branch 'awslabs:develop' into docs/1064
michaelbrewer Apr 12, 2022
9d0f3ee
fix(docs): Add final missing code and fixes
michaelbrewer Apr 12, 2022
44f01ba
chore: update hl_lines
michaelbrewer Apr 12, 2022
8c54499
chore: remove extra ws
michaelbrewer Apr 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,23 @@ changelog:

mypy:
poetry run mypy --pretty aws_lambda_powertools

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

lint-examples:
poetry run python3 -m py_compile docs/shared/*.py
poetry run python3 -m py_compile docs/examples/*/*.py
poetry run python3 -m py_compile docs/examples/*/*/*.py
poetry run python3 -m py_compile docs/examples/*/*/*/*.py
poetry run python3 -m py_compile docs/examples/*/*/*/*/*.py
cfn-lint docs/examples/*/*.yml
michaelbrewer marked this conversation as resolved.
Show resolved Hide resolved
cfn-lint docs/examples/*/*/*.yml
cfn-lint docs/examples/*/*/*/*.yml
cfn-lint docs/examples/*/*/*/*/*.yml
Loading