Skip to content

Commit 5872ff5

Browse files
knakadpengk19
authored andcommitted
change: enable wrong-import-position pylint check (aws#917)
1 parent 7486eaf commit 5872ff5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.pylintrc

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ disable=
100100
simplifiable-if-expression, # TODO: Simplify expressions
101101
too-many-public-methods, # TODO: Resolve
102102
ungrouped-imports, # TODO: Group imports
103-
wrong-import-position, # TODO: Correct import positions
104103
consider-using-ternary, # TODO: Consider ternary expressions
105104
chained-comparison, # TODO: Simplify chained comparison between operands
106105
simplifiable-if-statement, # TODO: Simplify ifs

src/sagemaker/amazon/record_pb2.py

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sagemaker/tensorflow/__init__.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@
1919
# classes for tensorflow serving. Currently tensorflow_serving_api can only be pip-installed for python 2.
2020
sys.path.append(os.path.dirname(__file__))
2121

22-
from sagemaker.tensorflow.estimator import TensorFlow # noqa: E402, F401
23-
from sagemaker.tensorflow.model import TensorFlowModel, TensorFlowPredictor # noqa: E402, F401
22+
from sagemaker.tensorflow.estimator import ( # noqa: E402, F401 # pylint: disable=wrong-import-position
23+
TensorFlow,
24+
)
25+
from sagemaker.tensorflow.model import ( # noqa: E402, F401 # pylint: disable=wrong-import-position
26+
TensorFlowModel,
27+
TensorFlowPredictor,
28+
)

0 commit comments

Comments
 (0)