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

Run cargo clippy when building the Pokémon Service #1742

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

GeneralSwiss
Copy link
Contributor

Motivation and Context

This is meant to fix this open issue: #1727

Description

  • Update the example Pokémon Service to run cargo clippy as part of it's build' -- this happens both for the Rust and Python examples.

Testing

I wasn't exactly able to find what tests were relevant, other than just just running ci-action check-server-e2e-test and ci-action check-server-python-e2e-test -- Both of which reflected the addition of `cargo clippy'

For good measure, I ran all other tests.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@GeneralSwiss GeneralSwiss requested review from a team as code owners September 18, 2022 17:42
Copy link
Contributor

@david-perez david-perez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this up! Just a small comment.

@@ -7,4 +7,6 @@ set -eux
cd smithy-rs/rust-runtime/aws-smithy-http-server/examples

make
cargo test
make clippy
Copy link
Contributor

@david-perez david-perez Sep 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should suffice to just have:

make test clippy

in both Makefiles.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you want me to edit the Makefiles? Or you mean in the check-server-(python-)e2e-test files to just condense what I have into make test clippy (I am assuming the latter, just want to make sure).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latter.

Copy link
Contributor

@david-perez david-perez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@david-perez david-perez enabled auto-merge (squash) September 21, 2022 10:26
@david-perez david-perez merged commit ff13b08 into smithy-lang:main Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants