From c8f0b7939b625e01a865b449c4a1170686233624 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 1 Apr 2021 13:45:08 +0800 Subject: [PATCH] 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 --- src/pybind/mgr/dashboard/.pylintrc | 4 +++- src/pybind/mgr/dashboard/requirements-py3.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/.pylintrc b/src/pybind/mgr/dashboard/.pylintrc index d5a9d1f7b28e8..f1a89f5bfba04 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 364ce28356ccd..1dc83df99e307 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 -- 2.39.5