-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Pylint Error Fixes #14851
Comments
Hey, this is the MXNet Label Bot. |
@mxnet-label-bot add [Call for Contribution] |
Hi @stu1130 , I'm interested in working on this if no one else has signed up. I propose to remove the 'else' statement after the 'raise' statment for solving the 'no-else-raise' situation. However, I am not sure on dealing with 'unbalanced-tuple-unpacking' situation, I would appreciate if you can give me some references or suggestions. Many thanks, |
@cchung100m Thanks. I'll need to take a look at those functions that have 'unbalanced-tuple-unpacking' warning once I have time. You could first deal with 'raise' & 'no-else-raise' |
Looks like the above 2 types of errors/warnings have been taken care of with @cchung100m PR One thing is yet to be addressed Error log from
|
@stu1130 Do you think this is a good-first-contribution worthy issue? |
@ChaiBapchya yeah |
@mxnet-label-bot add [Good First Issue] |
I was looking into this issue and it this error doesn't seem to be there in the current master.
|
MXNet currently use very old version of pylint. Here we capture several pieces of code that need to be fixed/ refactored.
no-else-raise
1.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/contrib/onnx/mx2onnx/_export_helper.py#L43
2.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/contrib/onnx/onnx2mx/_translation_utils.py#L181
3.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/contrib/text/vocab.py#L213
4.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/gluon/trainer.py#L252
5.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/gluon/trainer.py#L266
6.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/gluon/utils.py#L343
7.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/image/detection.py#L812
8.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/image/image.py#L1377
9.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/model.py#L643
10.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/ndarray/sparse.py#L642
11.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/ndarray/sparse.py#L1105
12.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/test_utils.py#L209
13.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/test_utils.py#L1351
14.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/test_utils.py#L1378
15.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/test_utils.py#L1458
unbalanced-tuple-unpacking
1.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/contrib/quantization.py#L64
2.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/rnn/rnn_cell.py#L519
3.
https://github.com/apache/incubator-mxnet/blob/bde1b8498f217dc9ca0adfe99db7c24c1eaa8fea/python/mxnet/rnn/rnn_cell.py#L1423
The text was updated successfully, but these errors were encountered: