From bb972c22f46b954ab7c06a17a973ae086d6b928f Mon Sep 17 00:00:00 2001 From: Stas Date: Thu, 16 Dec 2021 14:13:54 -0800 Subject: [PATCH] pin mypy to 0.910 (#1531) https://github.com/samuelcolvin/pydantic/issues/3528 https://github.com/python/mypy/issues/6617#issuecomment-892438903 https://github.com/samuelcolvin/pydantic/pull/3175#issuecomment-914897604 updating mypy in build yml and requirements to 0.910 Co-authored-by: stas --- .github/workflows/ci.yml | 4 ++-- src/api-service/requirements-dev.txt | 2 +- src/cli/requirements-lint.txt | 2 +- src/pytypes/requirements-lint.txt | 2 +- src/utils/add-corpus-storage-accounts/requirements-lint.txt | 2 +- src/utils/check-pr/requirements-lint.txt | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e68f1d3be1..d6a5e1f132 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,7 +134,7 @@ jobs: run: | set -ex cd contrib/webhook-teams-service - python -m pip install --upgrade pip isort black mypy flake8 + python -m pip install --upgrade pip isort black mypy==0.910 flake8 pip install -r requirements.txt mypy webhook black webhook --check @@ -309,7 +309,7 @@ jobs: set -ex cd src/deployment python -m pip install --upgrade pip - pip install mypy isort black types-requests flake8 + pip install mypy==0.910 isort black types-requests flake8 mypy . isort --profile black . --check black . --check diff --git a/src/api-service/requirements-dev.txt b/src/api-service/requirements-dev.txt index d6156186ff..b5c28883be 100644 --- a/src/api-service/requirements-dev.txt +++ b/src/api-service/requirements-dev.txt @@ -1,6 +1,6 @@ pytest flake8 -mypy +mypy==0.910 isort vulture black diff --git a/src/cli/requirements-lint.txt b/src/cli/requirements-lint.txt index 4b17da7322..d11da7b580 100644 --- a/src/cli/requirements-lint.txt +++ b/src/cli/requirements-lint.txt @@ -1,5 +1,5 @@ flake8 -mypy +mypy==0.910 pytest isort vulture diff --git a/src/pytypes/requirements-lint.txt b/src/pytypes/requirements-lint.txt index 1ec96780f9..80d3fcaa72 100644 --- a/src/pytypes/requirements-lint.txt +++ b/src/pytypes/requirements-lint.txt @@ -1,5 +1,5 @@ flake8 -mypy +mypy==0.910 pytest isort pydantic diff --git a/src/utils/add-corpus-storage-accounts/requirements-lint.txt b/src/utils/add-corpus-storage-accounts/requirements-lint.txt index 27a97b8b59..442907ea83 100644 --- a/src/utils/add-corpus-storage-accounts/requirements-lint.txt +++ b/src/utils/add-corpus-storage-accounts/requirements-lint.txt @@ -1,5 +1,5 @@ flake8 -mypy +mypy==0.910 pytest isort vulture diff --git a/src/utils/check-pr/requirements-lint.txt b/src/utils/check-pr/requirements-lint.txt index 4b17da7322..d11da7b580 100644 --- a/src/utils/check-pr/requirements-lint.txt +++ b/src/utils/check-pr/requirements-lint.txt @@ -1,5 +1,5 @@ flake8 -mypy +mypy==0.910 pytest isort vulture