From: Kefu Chai Date: Thu, 1 Apr 2021 05:45:08 +0000 (+0800) Subject: pybind/mgr/dashboard/.pylintrc: silence more pylint warnings X-Git-Tag: v14.2.22~27^2~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c8f0b7939b625e01a865b449c4a1170686233624;p=ceph.git pybind/mgr/dashboard/.pylintrc: silence more pylint warnings this change is not cherry-picked from master, as we don't have following warnings in master, like: ************* Module dashboard.controllers.saml2 intern-builtin, controllers/saml2.py:57:8: R1720: Unnecessary "else" after "raise" (no-else-raise) also bump up the versions of pylint and astroid, so they can work with python3.8. see https://github.com/PyCQA/astroid/commit/28fc86f260f0cd9433d0603da81ee52045f9e4c3 Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/dashboard/.pylintrc b/src/pybind/mgr/dashboard/.pylintrc index d5a9d1f7b28..f1a89f5bfba 100644 --- a/src/pybind/mgr/dashboard/.pylintrc +++ b/src/pybind/mgr/dashboard/.pylintrc @@ -118,7 +118,9 @@ disable=import-star-module-level, too-many-arguments, too-many-locals, too-many-statements, - useless-object-inheritance + useless-object-inheritance, + no-else-raise, + no-else-return # Enable the message, report, category or checker with the given id(s). You can diff --git a/src/pybind/mgr/dashboard/requirements-py3.txt b/src/pybind/mgr/dashboard/requirements-py3.txt index 364ce28356c..1dc83df99e3 100644 --- a/src/pybind/mgr/dashboard/requirements-py3.txt +++ b/src/pybind/mgr/dashboard/requirements-py3.txt @@ -1,3 +1,3 @@ -astroid==2.1.0 -pylint==2.2.2 +astroid==2.5.2 +pylint==2.3.1 python3-saml==1.4.1