-
Notifications
You must be signed in to change notification settings - Fork 245
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
Conversation
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
@@ -5,7 +5,6 @@ updates: | |||
directory: '/' | |||
schedule: | |||
interval: daily | |||
open-pull-requests-limit: 10 |
There was a problem hiding this comment.
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...
There was a problem hiding this 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 CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
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
It's been a couple of times
mypy
breaks the pipeline by releasing newversions 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 lastwe successfully built with, in this case), and moves everything we
install though
pip install
intorequirements-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.