From f0dc5c2f8637d3fd28aa367747d99dc208a12fac Mon Sep 17 00:00:00 2001 From: jconstance Date: Sat, 18 Jul 2026 13:17:27 -0400 Subject: [PATCH] Clean up vestigial mypy/type-stub deps now covered by additional_dependencies 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 --- .pre-commit-config.yaml | 6 +----- test-requirements.txt | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d6d8494..b7427e46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,10 +33,6 @@ repos: args: [--fix] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.991 # Use the sha / tag you want to point at + rev: v1.19.1 # Use the sha / tag you want to point at hooks: - id: mypy - # Pinned so the hook's own venv can build typed-ast, which has no - # wheel for Python 3.12+; this only affects mypy's own interpreter, - # not the --python-version it type-checks against. - language_version: python3.11 diff --git a/test-requirements.txt b/test-requirements.txt index 292428e2..b87bb2da 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,4 @@ -r requirements.txt -# Linting tools -mypy # Testing tools nose2[coverage_plugin]>=0.12,<1 mock>=1.0.1,<2