From 0d6a9ef7e8efdcfa25c95b50242d21a3c080a016 Mon Sep 17 00:00:00 2001 From: "Francisco J. Solis" Date: Sun, 26 Dec 2021 13:44:21 -0600 Subject: [PATCH 1/3] Bumped mypy and tensorflow-cpu to newer versions --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bf54a166ce93..d948fbe33895 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ exclude = [ ] [tool.poetry.dependencies] -python = "^3.6.2" +python = ">=3.6.2,<3.10" # Mandatory dependencies numpy = "^1.19.0" grpcio = "^1.27.2" @@ -55,7 +55,7 @@ google = "^2.0.3" protobuf = "^3.12.1" dataclasses = { version = "==0.6", markers = "python_version < '3.7'" } # Optional dependencies -tensorflow-cpu = { version = "==2.6.2", optional = true } +tensorflow-cpu = { version = "==2.7.0", optional = true } torch = { version = "^1.10.1", optional = true } torchvision = { version = "^0.11.2", optional = true } boto3 = { version = "^1.12.36", optional = true } @@ -81,7 +81,7 @@ types-dataclasses = "^0.1.7" isort = "==5.9.2" black = "==21.7b0" docformatter = "==1.4" -mypy = "==0.910" +mypy = "==0.930" pylint = "==2.8.2" flake8 = "==3.9.2" pytest = "==6.2.4" From b16f28316a14f605ffab76969ba0caccf838c15f Mon Sep 17 00:00:00 2001 From: "Francisco J. Solis" Date: Sun, 26 Dec 2021 14:14:58 -0600 Subject: [PATCH 2/3] Rollback to mypy 0.910 as infinite run is had --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d948fbe33895..0754d04b8673 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ google = "^2.0.3" protobuf = "^3.12.1" dataclasses = { version = "==0.6", markers = "python_version < '3.7'" } # Optional dependencies -tensorflow-cpu = { version = "==2.7.0", optional = true } +tensorflow-cpu = { version = "==2.6.2", optional = true } torch = { version = "^1.10.1", optional = true } torchvision = { version = "^0.11.2", optional = true } boto3 = { version = "^1.12.36", optional = true } @@ -81,7 +81,7 @@ types-dataclasses = "^0.1.7" isort = "==5.9.2" black = "==21.7b0" docformatter = "==1.4" -mypy = "==0.930" +mypy = "^0.910" pylint = "==2.8.2" flake8 = "==3.9.2" pytest = "==6.2.4" From de7ce66b49ecaded4cc4b01f1d04616549700f72 Mon Sep 17 00:00:00 2001 From: "Francisco J. Solis" Date: Tue, 11 Jan 2022 18:44:47 -0600 Subject: [PATCH 3/3] Updated mypy to latest version as advised by Pedro --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7b5d9ad48ae7..d216dadbadbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ exclude = [ ] [tool.poetry.dependencies] -python = ">=3.6.2,<3.10" +python = "^3.6.2" # Mandatory dependencies numpy = "^1.19.0" grpcio = "^1.27.2" @@ -71,7 +71,7 @@ types-dataclasses = "==0.6.2" isort = "==5.10.1" black = "==21.12b0" docformatter = "==1.4" -mypy = "^0.910" +mypy = "==0.931" pylint = "==2.8.2" flake8 = "==3.9.2" pytest = "==6.2.4"