generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 16
Lint code #43
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
No related issues found. Please ensure there is an open issue related to this change to avoid significant delays or closure. |
|
undefined No related issues found. Please ensure 'pending-release' label is applied before releasing. |
sliedig
pushed a commit
to sliedig/aws-serverless-developer-experience-workshop-python
that referenced
this pull request
Sep 12, 2023
* chore: remove unused code and forgotten comments * chore: reorder ENV vars; make LambdaContext mock generic to fit all functions * chore: lint Python files * test: add tracer and logger output on propertes_approval_sync_function methods * chore: reformat StateMachine ASL file * fix: update Stage name in shared stack * chore: renamed stack file for unicorn_shared
igorlg
added a commit
that referenced
this pull request
Sep 14, 2023
* chore: Converted SAM Config file from TOML to YAML using samp-cli * feat: Updated template for new Contracts service implementation model * chore: add API contract * chore: Refactored integration tests * chore: Updated unit tests, et al * feat: Add EB Pipes * bug: remove file added by mistake * feat: Refactored unicorn_web * chore: Implemented final Unit tests for unicorn_contracts * test: Fixed all unit, integration and Curl tests for unicorn_contracts * chore: add missing licensing header * chore: typos and file styling * fix: remote unused test file, fixed naming convention of subscriber EB Policy * chore: remove unused coverage file * feat: Updated unicorn_web to v2 architecture, implemented integration and Curl tests * fix: remove curl-test from make test alias * chore: remove unused swagger-cli from make build * chore: Update Python dependencies on unicorn_properties * chore: remove Coverage config, add Integration tests to pyproject in unicorn_properties * chore: replace samconfig file from TOML to YAML * feat: Add EventBridge subscribers and subscription rules to unicorn_properties * chore: move state machine definition out of src/ to match across runtimes * chore: update template section name comments * chore: update cfn-lint ignored rules * chore: linted/inlined intrinsic functions for better readability * feat: add local EB bus to unicorn_properties, replace hard-coded service namespace with mapped constant * feat: add EB SSM Params to unicorn_properties * chore: add missing DDB permissions, remove unused SQS permission from unicorn_properties lambda functions * chore: lint unicorn_properties template, change EB trigger rule for ContractStatusChangedFunction * chore: fix EventBus name, lint JSON files in unicorn_properties eventbridge event payloads * chore: replace hardcoded stack name from Makefile with YQ command to read from samconfig * chore: lint and document Makefile stage groups * test: add Integration tests scaffold * chore: Add SAM validate to Makefile build stage * chore: remove unecessary SAM command line argument from build stage - settings are enforced in samconfig.yaml * chore: lint JSON files, remove unused JSON event payloads * bug: fix EB catch-all rule pattern match, add naming to EB catch-all CW Logs group, removed unused cfn-lint ignore rule * feat: Split event schemas and registry to each service * chore: Add license header to state_machine definition * fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties * chore: minor changes to templates * fix: renamed unicorn_web namespace in unicorn_properties schema library * refactor: extracted property_id parsing into its own method * refactor: removed DB update stage from approval function, and removed PENDING state from flow * feat: Split event schemas and registry to each service * chore: Add license header to state_machine definition * fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties * fix: renamed unicorn_web namespace in unicorn_properties schema library * refactor: extracted property_id parsing into its own method * refactor: removed DB update stage from approval function, and removed PENDING state from flow * feat: updating Stage values to lowercase; updating stage references and parameters; sync with dotnet * chore: Fix naming structures, move ServiceNamespace SSM param to SharedInfra * feat: Add shared stack to Python implementation * bug: Fix catch-all rule from each service to match events from every service source * chore: remove top-level section comments from templates * chore: update Python dependencies * chore: remove unused PyTest Coverage tool * chore: fix typos and misnomers in template comments * chore: add description comments to template resources * chore: add comments to resources and cfn-lint rules in template.yaml * chore: reordered resources in template.yaml to improve readability * chore: removed unused outputs * chore: lambda function outputs - added ARN output, renamed Name output * chore: reordered and fixed StateMachine policy templates * chore: Uncommented StateMachine event trigger, as dependency with unicorn_web Namespace SSM param was removed * chore: add missing Outputs for CatchAll CW Logs group * chore: add missing OnFailure SQS destination * bug: replaces status=NEW for PENDING on test DDB items, as per new architecture * chore: remove commented-out Event payload * chore: minor changes to template formatting (#39) * chore: minor changes to template formatting * chore: additional template updates and changes to subscriptions * chore: additional template updates and changes to subscriptions * fix: updated rule name * fix: updated rule names * update dependencies (#41) * chore: update Python dependency versions * chore: lint pyproject files, fix typo in description * chore: bump code version in pyproject to match v2 tag * test: reorganised test events, refactored unit tests * nested stacks (#42) * refactor: Moved each services ancillary stacks to be nested inside template.yaml, to simplify CI/CD deployment * chore: fix template.yaml linting * test: add outputs that help with integration tests * chore: add description and comments to template.yaml sections * fix: typo in SAM policy template usage * test: reorganised test events, refactored unit tests * Lint code (#43) * chore: remove unused code and forgotten comments * chore: reorder ENV vars; make LambdaContext mock generic to fit all functions * chore: lint Python files * test: add tracer and logger output on propertes_approval_sync_function methods * chore: reformat StateMachine ASL file * fix: update Stage name in shared stack * chore: renamed stack file for unicorn_shared * contract -> contracts * contract->contracts tests * test: remove partially-implemented Integration tests * chore: Bring files inline with Dotnet, Java and Typescript * test: fixing EventBus name in PublicationEvaluationCompleted event payload of unicorn_web * bug: wrong Event source filter parameter in unicorn_web subscriptions * chore: add log statements in unicorn_web's request_approval_function for publish_event * bug: remove message attribute HttpMethod filter * bug: unicorn_web requestApproval should only filter out properties in APPROVED state * refactor: add schema package to pyproject * chore: add missing global env var to unicorn_web, to bring it inline with other languages * bug: wrong parameter being used for unicorn_web's PublicationApprovedEventHandlerFunction * refactor: change CodeUri of all Lambda functions in unicorn_web to be src/. This is to fix Pythons import paths * docs: add API Gateway CW Logs group tag --------- Co-authored-by: Stephen Liedig <sliedig@amazon.com> Co-authored-by: Kevin Chan <kevinwochan@gmail.com> Co-authored-by: kechn <kechn@amazon.com>
sliedig
added a commit
that referenced
this pull request
Nov 7, 2025
* chore: Converted SAM Config file from TOML to YAML using samp-cli * feat: Updated template for new Contracts service implementation model * chore: add API contract * chore: Refactored integration tests * chore: Updated unit tests, et al * feat: Add EB Pipes * bug: remove file added by mistake * feat: Refactored unicorn_web * chore: Implemented final Unit tests for unicorn_contracts * test: Fixed all unit, integration and Curl tests for unicorn_contracts * chore: add missing licensing header * chore: typos and file styling * fix: remote unused test file, fixed naming convention of subscriber EB Policy * chore: remove unused coverage file * feat: Updated unicorn_web to v2 architecture, implemented integration and Curl tests * fix: remove curl-test from make test alias * chore: remove unused swagger-cli from make build * chore: Update Python dependencies on unicorn_properties * chore: remove Coverage config, add Integration tests to pyproject in unicorn_properties * chore: replace samconfig file from TOML to YAML * feat: Add EventBridge subscribers and subscription rules to unicorn_properties * chore: move state machine definition out of src/ to match across runtimes * chore: update template section name comments * chore: update cfn-lint ignored rules * chore: linted/inlined intrinsic functions for better readability * feat: add local EB bus to unicorn_properties, replace hard-coded service namespace with mapped constant * feat: add EB SSM Params to unicorn_properties * chore: add missing DDB permissions, remove unused SQS permission from unicorn_properties lambda functions * chore: lint unicorn_properties template, change EB trigger rule for ContractStatusChangedFunction * chore: fix EventBus name, lint JSON files in unicorn_properties eventbridge event payloads * chore: replace hardcoded stack name from Makefile with YQ command to read from samconfig * chore: lint and document Makefile stage groups * test: add Integration tests scaffold * chore: Add SAM validate to Makefile build stage * chore: remove unecessary SAM command line argument from build stage - settings are enforced in samconfig.yaml * chore: lint JSON files, remove unused JSON event payloads * bug: fix EB catch-all rule pattern match, add naming to EB catch-all CW Logs group, removed unused cfn-lint ignore rule * feat: Split event schemas and registry to each service * chore: Add license header to state_machine definition * fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties * chore: minor changes to templates * fix: renamed unicorn_web namespace in unicorn_properties schema library * refactor: extracted property_id parsing into its own method * refactor: removed DB update stage from approval function, and removed PENDING state from flow * feat: Split event schemas and registry to each service * chore: Add license header to state_machine definition * fix: moved schema for PublicationEvaluationCompleted event from unicorn_web to unicorn_properties * fix: renamed unicorn_web namespace in unicorn_properties schema library * refactor: extracted property_id parsing into its own method * refactor: removed DB update stage from approval function, and removed PENDING state from flow * feat: updating Stage values to lowercase; updating stage references and parameters; sync with dotnet * chore: Fix naming structures, move ServiceNamespace SSM param to SharedInfra * feat: Add shared stack to Python implementation * bug: Fix catch-all rule from each service to match events from every service source * chore: remove top-level section comments from templates * chore: update Python dependencies * chore: remove unused PyTest Coverage tool * chore: fix typos and misnomers in template comments * chore: add description comments to template resources * chore: add comments to resources and cfn-lint rules in template.yaml * chore: reordered resources in template.yaml to improve readability * chore: removed unused outputs * chore: lambda function outputs - added ARN output, renamed Name output * chore: reordered and fixed StateMachine policy templates * chore: Uncommented StateMachine event trigger, as dependency with unicorn_web Namespace SSM param was removed * chore: add missing Outputs for CatchAll CW Logs group * chore: add missing OnFailure SQS destination * bug: replaces status=NEW for PENDING on test DDB items, as per new architecture * chore: remove commented-out Event payload * chore: minor changes to template formatting (#39) * chore: minor changes to template formatting * chore: additional template updates and changes to subscriptions * chore: additional template updates and changes to subscriptions * fix: updated rule name * fix: updated rule names * update dependencies (#41) * chore: update Python dependency versions * chore: lint pyproject files, fix typo in description * chore: bump code version in pyproject to match v2 tag * test: reorganised test events, refactored unit tests * nested stacks (#42) * refactor: Moved each services ancillary stacks to be nested inside template.yaml, to simplify CI/CD deployment * chore: fix template.yaml linting * test: add outputs that help with integration tests * chore: add description and comments to template.yaml sections * fix: typo in SAM policy template usage * test: reorganised test events, refactored unit tests * Lint code (#43) * chore: remove unused code and forgotten comments * chore: reorder ENV vars; make LambdaContext mock generic to fit all functions * chore: lint Python files * test: add tracer and logger output on propertes_approval_sync_function methods * chore: reformat StateMachine ASL file * fix: update Stage name in shared stack * chore: renamed stack file for unicorn_shared * contract -> contracts * contract->contracts tests * test: remove partially-implemented Integration tests * chore: Bring files inline with Dotnet, Java and Typescript * test: fixing EventBus name in PublicationEvaluationCompleted event payload of unicorn_web * bug: wrong Event source filter parameter in unicorn_web subscriptions * chore: add log statements in unicorn_web's request_approval_function for publish_event * bug: remove message attribute HttpMethod filter * bug: unicorn_web requestApproval should only filter out properties in APPROVED state * refactor: add schema package to pyproject * chore: add missing global env var to unicorn_web, to bring it inline with other languages * bug: wrong parameter being used for unicorn_web's PublicationApprovedEventHandlerFunction * refactor: change CodeUri of all Lambda functions in unicorn_web to be src/. This is to fix Pythons import paths * docs: add API Gateway CW Logs group tag --------- Co-authored-by: Stephen Liedig <sliedig@amazon.com> Co-authored-by: Kevin Chan <kevinwochan@gmail.com> Co-authored-by: kechn <kechn@amazon.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
do-not-merge
PRs that are blocked for varying reasons
need-issue
PR is missing a related issue for tracking change
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Checklist
Please leave checklist items unchecked if they do not apply to your change.
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.