serve icon indicating copy to clipboard operation
serve copied to clipboard

PyLint Failures for pylint-2.6.0

Open dk19y opened this issue 6 years ago • 1 comments

PyLint recently released 2.6.0 which has resulted in the following errors - https://github.com/PyCQA/pylint/releases

Running pylint -rn --rcfile=./ts/tests/pylintrc ts/. would produce,

************* Module ts.model_service_worker
ts/model_service_worker.py:42:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
************* Module ts.torch_handler.object_detector
ts/torch_handler/object_detector.py:22:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/object_detector.py:22:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/object_detector.py:22:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/model_service_worker.py:42:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
************* Module ts.torch_handler.text_handler
ts/torch_handler/text_handler.py:29:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/text_handler.py:34:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/model_service_worker.py:42:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
ts/torch_handler/text_handler.py:29:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/text_handler.py:34:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/object_detector.py:22:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/object_detector.py:22:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/model_service_worker.py:42:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
ts/torch_handler/text_handler.py:29:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/text_handler.py:34:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
ts/torch_handler/object_detector.py:22:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)

-------------------------------------------------------------------
Your code has been rated at 9.97/10 (previous run: 10.00/10, -0.03)

This has been pinned to 2.5.3 till these are fixed.

dk19y avatar Aug 26 '20 19:08 dk19y

This has already been fixed and merged to master. PR: https://github.com/pytorch/serve/pull/639

Logs from latest master :

(base) USL07109:serve harsh_bafna$ git pull
Already up to date.
(base) USL07109:serve harsh_bafna$ pip install -U pylint
Requirement already up-to-date: pylint in /opt/anaconda3/lib/python3.7/site-packages (2.6.0)
Requirement already satisfied, skipping upgrade: isort<6,>=4.2.5 in /opt/anaconda3/lib/python3.7/site-packages (from pylint) (4.3.21)
Requirement already satisfied, skipping upgrade: mccabe<0.7,>=0.6 in /opt/anaconda3/lib/python3.7/site-packages (from pylint) (0.6.1)
Requirement already satisfied, skipping upgrade: toml>=0.7.1 in /opt/anaconda3/lib/python3.7/site-packages (from pylint) (0.10.0)
Requirement already satisfied, skipping upgrade: astroid<=2.5,>=2.4.0 in /opt/anaconda3/lib/python3.7/site-packages (from pylint) (2.4.2)
Requirement already satisfied, skipping upgrade: wrapt~=1.11 in /opt/anaconda3/lib/python3.7/site-packages (from astroid<=2.5,>=2.4.0->pylint) (1.11.2)
Requirement already satisfied, skipping upgrade: typed-ast<1.5,>=1.4.0; implementation_name == "cpython" and python_version < "3.8" in /opt/anaconda3/lib/python3.7/site-packages (from astroid<=2.5,>=2.4.0->pylint) (1.4.1)
Requirement already satisfied, skipping upgrade: six~=1.12 in /opt/anaconda3/lib/python3.7/site-packages (from astroid<=2.5,>=2.4.0->pylint) (1.14.0)
Requirement already satisfied, skipping upgrade: lazy-object-proxy==1.4.* in /opt/anaconda3/lib/python3.7/site-packages (from astroid<=2.5,>=2.4.0->pylint) (1.4.3)
(base) USL07109:serve harsh_bafna$ pylint -rn --rcfile=./ts/tests/pylintrc ts/.

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

(base) USL07109:serve harsh_bafna$

harshbafna avatar Aug 27 '20 04:08 harshbafna