]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/dashboard/.pylintrc: silence more pylint warnings 40536/head
authorKefu Chai <kchai@redhat.com>
Thu, 1 Apr 2021 05:45:08 +0000 (13:45 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 1 Apr 2021 08:05:57 +0000 (16:05 +0800)
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 <kchai@redhat.com>
src/pybind/mgr/dashboard/.pylintrc
src/pybind/mgr/dashboard/requirements-py3.txt

index d5a9d1f7b28e8826909e4f1d8653af34253e3289..f1a89f5bfba0440807ec095c510e43cee09c7f98 100644 (file)
@@ -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
index 364ce28356ccd2dbc3b54a7e771ed42f486ebbb2..1dc83df99e3071baa01172e99c52a26a2cd6759f 100644 (file)
@@ -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