From c6f21aec56ed886834bc1c7ad3cbc7b87c8aa7ea Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Tue, 24 Sep 2024 11:56:06 +0300 Subject: [PATCH] Update pylint disable for pylint v3.3.0 --- tcms/kiwi_auth/admin.py | 2 +- tcms/kiwi_auth/forms.py | 2 +- tcms/rpc/api/forms/__init__.py | 2 +- tcms/testplans/models.py | 2 +- tcms/testruns/models.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tcms/kiwi_auth/admin.py b/tcms/kiwi_auth/admin.py index 8d9417ada4..c10109e488 100644 --- a/tcms/kiwi_auth/admin.py +++ b/tcms/kiwi_auth/admin.py @@ -71,7 +71,7 @@ def has_delete_permission(self, request, obj=None): request, getattr(obj, "pk", 0) ) or super().has_delete_permission(request, obj) - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-positional-arguments def render_change_form( self, request, context, add=False, change=False, form_url="", obj=None ): diff --git a/tcms/kiwi_auth/forms.py b/tcms/kiwi_auth/forms.py index 77a1e7719d..6e90ce7928 100644 --- a/tcms/kiwi_auth/forms.py +++ b/tcms/kiwi_auth/forms.py @@ -102,7 +102,7 @@ class PasswordResetForm( else None ) - def save( # pylint: disable=too-many-arguments + def save( # pylint: disable=too-many-arguments,too-many-positional-arguments self, domain_override=None, subject_template_name="registration/password_reset_subject.txt", diff --git a/tcms/rpc/api/forms/__init__.py b/tcms/rpc/api/forms/__init__.py index 937e15204c..14e91bb0b7 100644 --- a/tcms/rpc/api/forms/__init__.py +++ b/tcms/rpc/api/forms/__init__.py @@ -22,7 +22,7 @@ class UpdateModelFormMixin: # pylint: disable=too-few-public-methods This needs to be the 1st base class! """ - def __init__( # pylint: disable=too-many-arguments + def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments self, data=None, files=None, diff --git a/tcms/testplans/models.py b/tcms/testplans/models.py index ad1fba1cfe..b7c580e3ce 100644 --- a/tcms/testplans/models.py +++ b/tcms/testplans/models.py @@ -94,7 +94,7 @@ def make_cloned_name(self): """Make default name of cloned plan""" return f"Copy of {self.name}" - def clone( # pylint: disable=too-many-arguments + def clone( # pylint: disable=too-many-arguments,too-many-positional-arguments self, name=None, product=None, diff --git a/tcms/testruns/models.py b/tcms/testruns/models.py index 3eee45d45f..2ae8f9068a 100755 --- a/tcms/testruns/models.py +++ b/tcms/testruns/models.py @@ -112,7 +112,7 @@ def _create_single_execution(self, case, assignee, build, sortkey): start_date=None, ) - def create_execution( # pylint: disable=too-many-arguments + def create_execution( # pylint: disable=too-many-arguments,too-many-positional-arguments self, case, assignee=None,