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(python): pin mypy to the exact version #2476

Merged
merged 1 commit into from
Jan 26, 2021
Merged

fix(python): pin mypy to the exact version #2476

merged 1 commit into from
Jan 26, 2021

Conversation

RomainMuller
Copy link
Contributor

It's been a couple of times mypy breaks the pipeline by releasing new
versions that are more strict or start checking things it used to
silently ignored.

In order to avoid this happening in the future (and putting us back in
control), this pins the mypy version to the exact release (the last
we successfully built with, in this case), and moves everything we
install though pip install into requirements-dev.txt files so that
@dependabot can help us stay up-to-date going forward.

Fixes #2464


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

It's been a couple of times `mypy` breaks the pipeline by releasing new
versions that are more strict or start checking things it used to
silently ignored.

In order to avoid this happening in the future (and putting us back in
control), this pins the `mypy` version to the exact release (the last
we successfully built with, in this case), and moves everything we
install though `pip install` into `requirements-dev.txt` files so that
@dependabot can help us stay up-to-date going forward.

Fixes #2464
@RomainMuller RomainMuller self-assigned this Jan 26, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 26, 2021
@@ -5,7 +5,6 @@ updates:
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 10
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed those limits because they're no longer necessary (they're mostly useful when you "just enabled" dependant on a codebase with a lot of outdated dependencies). This would improve our ability to remain up-to-date...

Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Looks like this PR includes more then just pinning mypy, but ok...

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
  • Commit ID: ace4752
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2021

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jan 26, 2021
@mergify mergify bot merged commit 01a46d6 into main Jan 26, 2021
@mergify mergify bot deleted the rmuller/pin-mypy branch January 26, 2021 12:28
@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2021

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jan 26, 2021
mergify bot pushed a commit that referenced this pull request Jan 27, 2021
Updated the type annotations of the jsii runtime for Python so that the
decorators carry appropriate type signatures. Additionally, enhanced
the code generation for Python so that mypy errors that are difficult or
impossible to address are ignored by the tool without requiring specific
user configuration.

Relates to #2464, #2476



---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MyPy Type Failures
3 participants