This repository was archived by the owner on Mar 23, 2026. It is now read-only.
mypy: add moto-ext as additional-dependencies in pre-commit hook#13465
Merged
mypy: add moto-ext as additional-dependencies in pre-commit hook#13465
Conversation
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 2h 32m 10s ⏱️ Results for commit 8417f24. |
silv-io
approved these changes
Dec 4, 2025
Member
silv-io
left a comment
There was a problem hiding this comment.
Checked it out locally, it works!
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Motivation
Locally, when running mypy on the transcribe service, we might get the following failure since #13433:
I had encountered the issue in the PR introducing this import locally, but when adding the type ignore so that it would work, it started failing in CI saying that the type ignore was useless so I removed it. See 3e1ff49
This is because locally, we did not declare
moto-extas anadditional-dependenciesfor the pre-commit hook\cc @silv-io
\cc @bblommers
you might have an idea about why we'd get such error, with your experience of mypy? I have trouble making sense of the error messageChanges
moto-extto the list of additional dependencies in the pre-commit hookTests
Related