diff --git a/.pylintrc b/.pylintrc index 754000d2d..90f13ced8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -15,10 +15,13 @@ ignore-patterns= # Python code to execute, usually for sys.path manipulation such as # pygtk.require(). -init-hook="import sys; \ - from pathlib import Path; \ - from pylint.config import find_pylintrc; \ - sys.path.append(Path(find_pylintrc()).parent / 'tests');" +init-hook="import sys; + from pathlib import Path; + from pylint.config import find_pylintrc; + + tests_folder = Path(find_pylintrc()).parent / 'tests' + sys.path.append(str(tests_folder)); + " # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the @@ -178,7 +181,10 @@ disable=format, # we use it to speedup/optimize import-outside-toplevel, fixme, - + # we use cause of the exception for error message output + # so some of the times we don't use `raise from` to not show the cause + # of the error + raise-missing-from, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/setup.py b/setup.py index 98d931d97..f78b734e9 100644 --- a/setup.py +++ b/setup.py @@ -145,10 +145,9 @@ tests_requirements = [ "urllib3<1.26.0", "rangehttpserver==1.2.0", "beautifulsoup4==4.4.0", - "pylint==2.5.3", - "astroid<2.5", # temporary required for pylint, see #5469 - "pylint-pytest>=0.3.0", - "pylint-plugin-utils", + "pylint==2.7.2", + "pylint-pytest==0.3.0", + "pylint-plugin-utils==0.6", "wget", "filelock", "mypy",