From d64c71023384e1c641740d6bcb65d9d197be8f75 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Tue, 1 Oct 2024 19:42:11 +1000 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20add=20suggestion=20mode=20to=20pyl?= =?UTF-8?q?int=20settings,=20and=20silence=20the=20=E2=80=9Ctoo=20many=20t?= =?UTF-8?q?ry=20statements=E2=80=9D=20checker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jens Troeger --- pyproject.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f05e4c3af..9f7c2fd65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -210,6 +210,9 @@ ignore_missing_imports = true # https://pylint.pycqa.org/en/latest/user_guide/configuration/index.html [tool.pylint.MASTER] fail-under = 10.0 +suggestion-mode = true +load-plugins = [ +] disable = [ "fixme", "line-too-long", # Replaced by Flake8 Bugbear B950 check. @@ -218,15 +221,16 @@ disable = [ "too-many-arguments", "too-many-boolean-expressions", "too-many-branches", + "too-many-function-args", "too-many-instance-attributes", "too-many-lines", "too-many-locals", "too-many-nested-blocks", + "too-many-positional-arguments", "too-many-public-methods", "too-many-return-statements", "too-many-statements", - "too-many-function-args", - "too-many-positional-arguments", + "too-many-try-statements", "duplicate-code", ] From 4df3da2c9c842696ca57954cf0efccb014be4dc1 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Wed, 2 Oct 2024 12:12:40 +1000 Subject: [PATCH 2/2] chore: add comment --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f7c2fd65..e972c00ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -210,7 +210,7 @@ ignore_missing_imports = true # https://pylint.pycqa.org/en/latest/user_guide/configuration/index.html [tool.pylint.MASTER] fail-under = 10.0 -suggestion-mode = true +suggestion-mode = true # Remove this setting when pylint v4 is released. load-plugins = [ ] disable = [