From 90e1a0ecf03ee63d59fdaa383a5a33773322a5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Fri, 21 Oct 2022 09:15:33 +0200 Subject: [PATCH] Single source for the mypy version (#15224) --- .github/workflows/code-checks.yml | 1 + requirements/lite/test.txt | 1 - requirements/pytorch/test.txt | 1 - tests/tests_pytorch/models/data/__init__.py | 1 - tests/tests_pytorch/models/data/horovod/__init__.py | 1 - 5 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 tests/tests_pytorch/models/data/__init__.py delete mode 100644 tests/tests_pytorch/models/data/horovod/__init__.py diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 7e0c9a2e4ca91..4ca8d9a4c76b6 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -32,6 +32,7 @@ jobs: - name: Install dependencies run: | + pip install mypy==0.971 pip install torch==1.12 --find-links https://download.pytorch.org/whl/cpu/torch_stable.html python ./requirements/pytorch/adjust-versions.py requirements/pytorch/extra.txt # todo: adjust requirements for both code-bases diff --git a/requirements/lite/test.txt b/requirements/lite/test.txt index 0c80415775e0d..b202917101f58 100644 --- a/requirements/lite/test.txt +++ b/requirements/lite/test.txt @@ -3,4 +3,3 @@ codecov>=2.1, <=2.1.12 pytest>=7.0, <=7.1.2 pytest-cov <=3.0.0 pre-commit>=1.0 -mypy==0.971 diff --git a/requirements/pytorch/test.txt b/requirements/pytorch/test.txt index a6fa5908bb36d..cfc0cda1cb268 100644 --- a/requirements/pytorch/test.txt +++ b/requirements/pytorch/test.txt @@ -5,7 +5,6 @@ pytest-cov <=3.0.0 pytest-forked <=1.4.0 pytest-rerunfailures>=10.2 pre-commit>=1.0 -mypy==0.971 # needed in tests cloudpickle>=1.3, <=2.1.0 diff --git a/tests/tests_pytorch/models/data/__init__.py b/tests/tests_pytorch/models/data/__init__.py deleted file mode 100644 index 6b0006f6b2500..0000000000000 --- a/tests/tests_pytorch/models/data/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# this is needed only for mypy==0.800 as it undestands only packages diff --git a/tests/tests_pytorch/models/data/horovod/__init__.py b/tests/tests_pytorch/models/data/horovod/__init__.py deleted file mode 100644 index 6b0006f6b2500..0000000000000 --- a/tests/tests_pytorch/models/data/horovod/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# this is needed only for mypy==0.800 as it undestands only packages