From 2aee366a1fba5b3ad3d7ad69efbd785c994ab874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> Date: Sat, 16 Nov 2019 10:59:26 +0200 Subject: [PATCH] Upgrade pylint, tweak config (#28798) * Upgrade pylint to 2.4.4 and astroid to 2.3.3 https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-4 https://github.com/PyCQA/astroid/blob/astroid-2.3.3/ChangeLog * Disable pylint score and persistence We don't use scoring, and it can be supposedly incorrect (so worse than ignorable) when using more than one parallel job. --- pylintrc | 3 ++- requirements_test.txt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pylintrc b/pylintrc index ff47af6087b..7794f61e500 100644 --- a/pylintrc +++ b/pylintrc @@ -3,6 +3,7 @@ ignore=tests # Use a conservative default here; 2 should speed up most setups and not hurt # any too bad. Override on command line as appropriate. jobs=2 +persistent=no [BASIC] good-names=id,i,j,k,ex,Run,_,fp @@ -49,7 +50,7 @@ disable= unused-argument [REPORTS] -reports=no +score=no [TYPECHECK] # For attrs diff --git a/requirements_test.txt b/requirements_test.txt index f8fba663bcb..dae60b74653 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -8,8 +8,8 @@ codecov==2.0.15 mock-open==1.3.1 mypy==0.740 pre-commit==1.20.0 -pylint==2.4.3 -astroid==2.3.2 +pylint==2.4.4 +astroid==2.3.3 pytest-aiohttp==0.3.0 pytest-cov==2.8.1 pytest-sugar==0.9.2 -- GitLab