Skip to content

Clean up vestigial mypy/type-stub deps now covered by additional_dependencies - #235

Merged
jconstance-amplify merged 2 commits into
mainfrom
cleanup-vestigial-mypy-deps
Jul 20, 2026
Merged

Clean up vestigial mypy/type-stub deps now covered by additional_dependencies#235
jconstance-amplify merged 2 commits into
mainfrom
cleanup-vestigial-mypy-deps

Conversation

@jconstance-amplify

Copy link
Copy Markdown
Contributor

Mechanical cleanup: these repos already run mypy via the pre-commit/mirrors-mypy
hook, but still carried a vestigial mypy pin (and in some cases boto3 type-stub
packages) in requirements/test-requirements files left over from before that hook
existed. Per eng-guidance:pre-commit,
type stubs belong in the hook's additional_dependencies, not requirements files.

Changes:

  • Remove the dead mypy pin (the hook installs its own pinned mypy into an isolated venv)
  • Move types-*/mypy-boto3-*/boto3-stubs packages into additional_dependencies, deduped against what was already declared there
  • python-hcl2 only: bump the mirrors-mypy rev off a pre-v1.0 pin and drop the accompanying language_version workaround (the typed-ast/Python-3.12-wheel issue that pin exists for)
  • codebuild_slack_notifier only: drop a redundant mypy . invocation from tox's lint testenv, now superseded by the hook

Generated with assistance from Claude Code; see the commit trailer for co-authorship.

…ndencies

The mirrors-mypy pre-commit hook installs its own pinned mypy into an
isolated venv, so a bare `mypy` pin in test-requirements.txt is never what
CI actually runs. Move type-stub packages (types-*, mypy-boto3-*, etc.) into
the hook's additional_dependencies where they belong.

Co-authored-by: Claude <noreply@anthropic.com>
@jconstance-amplify
jconstance-amplify marked this pull request as ready for review July 18, 2026 17:21
@jconstance-amplify
jconstance-amplify requested a review from a team as a code owner July 18, 2026 17:21
brandonmontijo
brandonmontijo previously approved these changes Jul 18, 2026
Co-authored-by: Claude <noreply@anthropic.com>
@jconstance-amplify
jconstance-amplify marked this pull request as draft July 18, 2026 17:26
@jconstance-amplify
jconstance-amplify marked this pull request as ready for review July 18, 2026 18:11
@jconstance-amplify
jconstance-amplify merged commit 66e8db3 into main Jul 20, 2026
10 of 11 checks passed
@jconstance-amplify
jconstance-amplify deleted the cleanup-vestigial-mypy-deps branch July 20, 2026 13:13
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