You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ar...@apache.org on 2022/05/13 21:02:48 UTC

[tvm] 05/05: Add lint deps

This is an automated email from the ASF dual-hosted git repository.

areusch pushed a commit to branch areusch/freeze-dependencies
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit f2a45dc9ed637893c07dce14d8276841e008a7e1
Author: Andrew Reusch <ar...@gmail.com>
AuthorDate: Fri May 13 14:02:22 2022 -0700

    Add lint deps
---
 docker/python/ci-constraints.txt |  5 +++++
 python/gen_requirements.py       | 10 +++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/docker/python/ci-constraints.txt b/docker/python/ci-constraints.txt
index 3c8eb40ab1..c7971c9680 100644
--- a/docker/python/ci-constraints.txt
+++ b/docker/python/ci-constraints.txt
@@ -6,14 +6,19 @@
 #keras = "^2.6.0"
 #mxnet = "^1.6.0"
 
+black = "==22.3.0"
+blocklint = "==0.2.3"
 #commonmark = ">=0.7.3"
 cpplint = "==1.6.0"
 #docutils = ">=0.11,<0.17"
 #ethos-u-vela = "==3.2.0"
+flake8 = "==3.9.2"
 flowvision = "==0.1.0"
 #h5py = "==3.1.0"
 keras = "==2.6"
+jinja2 = "==3.0.3"
 mxnet = "==1.6.0"
+mypy = "==0.902"
 oneflow = "==0.7.0"
 onnx = "==1.10.2"
 onnxruntime = "==1.9.0"
diff --git a/python/gen_requirements.py b/python/gen_requirements.py
index d4b0079754..45aab10295 100755
--- a/python/gen_requirements.py
+++ b/python/gen_requirements.py
@@ -218,11 +218,15 @@ REQUIREMENTS_BY_PIECE: RequirementsByPieceType = [
                 "astroid",  # pylint requirement, listed so a hard constraint can be included.
                 "autodocsumm",
                 "black",
+                "blocklint",
                 "commonmark",
                 "cpplint",
                 "docutils",
+                "flake8",
                 "image",
+                "jinja2",
                 "matplotlib",
+                "mypy",
                 "pillow",
                 "pylint",
                 "sphinx",
@@ -266,7 +270,8 @@ CONSTRAINTS = [
     ("astroid", []),
     ("attrs", []),
     ("autodocsumm", []),
-    ("black", ["==20.8b1"]),
+    ("black", []),
+    ("blocklint", []),
     ("cloudpickle", []),
     ("commonmark", [">=0.7.3"]),  # From PR #213.
     ("coremltools", []),
@@ -277,12 +282,15 @@ CONSTRAINTS = [
         [">=0.11,<0.17"],
     ),  # Work around https://github.com/readthedocs/sphinx_rtd_theme/issues/1115
     ("ethos-u-vela", ["==3.2.0"]),
+    ("flake8", []),
     ("flowvision", []),
     ("future", []),
     ("image", []),
+    ("jinja2", []),
     ("keras", []),
     ("matplotlib", []),
     ("mxnet", []),
+    ("mypy", []),
     ("numpy", []),
     ("oneflow", []),
     ("onnx", []),