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/06/13 23:43:42 UTC

[tvm] 10/27: fix pylint because i'm not sure why it's different

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 c1556196c405cd865b891055be2e4baa0df487cc
Author: Andrew Reusch <ar...@gmail.com>
AuthorDate: Thu Jun 2 17:44:10 2022 -0700

    fix pylint because i'm not sure why it's different
---
 python/tvm/testing/utils.py     | 3 +--
 python/tvm/topi/adreno/utils.py | 3 ++-
 python/tvm/topi/x86/concat.py   | 2 +-
 tests/lint/pylintrc             | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/python/tvm/testing/utils.py b/python/tvm/testing/utils.py
index 569ea0cca7..ee901a045b 100644
--- a/python/tvm/testing/utils.py
+++ b/python/tvm/testing/utils.py
@@ -75,11 +75,10 @@ import platform
 import shutil
 import sys
 import time
-
 from typing import Optional, Callable, Union, List
 
-import pytest
 import numpy as np
+import pytest
 
 import tvm
 import tvm.arith
diff --git a/python/tvm/topi/adreno/utils.py b/python/tvm/topi/adreno/utils.py
index 78a992e56a..3e93d104f4 100644
--- a/python/tvm/topi/adreno/utils.py
+++ b/python/tvm/topi/adreno/utils.py
@@ -17,8 +17,9 @@
 # pylint: disable=invalid-name,unused-variable,unused-argument,no-else-return
 """util functions to be reused in different compute/schedule on Qualcomm Adreno GPU"""
 
-import tvm
 import numpy
+
+import tvm
 from tvm import te
 from tvm.topi.utils import simplify
 from tvm.topi import nn
diff --git a/python/tvm/topi/x86/concat.py b/python/tvm/topi/x86/concat.py
index 5cb3cd3f57..d59041e41a 100644
--- a/python/tvm/topi/x86/concat.py
+++ b/python/tvm/topi/x86/concat.py
@@ -16,9 +16,9 @@
 # under the License.
 "concatenate related operators"
 from typing import Optional
+import numpy as np
 import tvm
 from tvm import te
-import numpy as np
 from ..utils import get_const_int, const_vector
 
 
diff --git a/tests/lint/pylintrc b/tests/lint/pylintrc
index bf9539cb0b..83e4c2c2cc 100644
--- a/tests/lint/pylintrc
+++ b/tests/lint/pylintrc
@@ -82,7 +82,7 @@ enable=indexing-exception,old-raise-syntax
 # --enable=similarities". If you want to run only the classes checker, but have
 # no Warning level messages displayed, use"--disable=all --enable=classes
 # --disable=W"
-disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,protected-access,useless-object-inheritance,consider-using-get,bad-continuation,too-many-lines
+disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,protected-access,useless-object-inheritance,consider-using-get,bad-continuation,too-many-lines,comparison-with-callable
 
 [REPORTS]