From 01bdb6e7adf311b017676f0c012cb7e663b8e376 Mon Sep 17 00:00:00 2001 From: johnfan Date: Sat, 19 Oct 2024 19:40:08 +0200 Subject: [PATCH] fix: Fix pylint errors because no-self-use was disabled in new pytlint --- python/legion_linux/pylintrc | 2 +- tests/test_python.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/legion_linux/pylintrc b/python/legion_linux/pylintrc index 662f00d1..8446379f 100644 --- a/python/legion_linux/pylintrc +++ b/python/legion_linux/pylintrc @@ -2,7 +2,7 @@ init-hook='import sys; sys.path.append("python/legion_linux")' [MESSAGES CONTROL] -disable=missing-docstring,too-many-arguments,too-many-locals, import-error, duplicate-code, missing-module-docstring, too-many-instance-attributes, too-many-public-methods, no-name-in-module +disable=missing-docstring,no-self-use,too-many-arguments,too-many-locals, import-error, duplicate-code, missing-module-docstring, too-many-instance-attributes, too-many-public-methods, no-name-in-module [FORMAT] max-line-length=120 diff --git a/tests/test_python.sh b/tests/test_python.sh index 33c1995a..f5b1fec9 100755 --- a/tests/test_python.sh +++ b/tests/test_python.sh @@ -2,4 +2,4 @@ set -ex DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -pylint --ignore-patterns=legion_gui_qt6.py,legion_version.py --rcfile ${DIR}/../python/legion_linux/pylintrc ${DIR}/../python/legion_linux/legion_linux \ No newline at end of file +pylint --ignore-patterns=legion_gui_qt6.py,legion_version.py --disable no-self-use --rcfile ${DIR}/../python/legion_linux/pylintrc ${DIR}/../python/legion_linux/legion_linux \ No newline at end of file