From 52b3f4f1975d2f0fcd25bc360a7b696fde024a28 Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:23:52 +0500 Subject: [PATCH] chore: suppressed too-many-positional-arguments rule --- edx_rest_framework_extensions/auth/jwt/decoder.py | 1 - edx_rest_framework_extensions/tests/test_permissions.py | 1 - pylintrc | 4 ++-- pylintrc_tweaks | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/edx_rest_framework_extensions/auth/jwt/decoder.py b/edx_rest_framework_extensions/auth/jwt/decoder.py index 7b8a0e34..79959263 100644 --- a/edx_rest_framework_extensions/auth/jwt/decoder.py +++ b/edx_rest_framework_extensions/auth/jwt/decoder.py @@ -267,7 +267,6 @@ def _verify_jwt_signature(token, jwt_issuer, decode_symmetric_token): raise jwt.InvalidTokenError(exc_info[2]) from token_error -# pylint: disable=R0917 def verify_jwk_signature_using_keyset(token, key_set, aud=None, iss=None, verify_signature=True, verify_exp=True): """ Verifies the signature of a JSON Web Token (JWT) using a provided JSON Web Key (PyJWK) key set. diff --git a/edx_rest_framework_extensions/tests/test_permissions.py b/edx_rest_framework_extensions/tests/test_permissions.py index 084e4501..d2268b8d 100644 --- a/edx_rest_framework_extensions/tests/test_permissions.py +++ b/edx_rest_framework_extensions/tests/test_permissions.py @@ -431,7 +431,6 @@ def test_jwt_user_filters(self, user_filters, is_user_in_url, expected_response, expected_log=expected_log, ) - # pylint: disable=R0917 def _assert_jwt_restricted_case(self, scopes, filters, is_user_in_url, expected_response, expected_log): with patch('edx_rest_framework_extensions.permissions.log') as mock_log: user = self._create_user() diff --git a/pylintrc b/pylintrc index 31341f90..c54bc0fb 100644 --- a/pylintrc +++ b/pylintrc @@ -286,7 +286,7 @@ disable = feature-toggle-needs-doc, illegal-waffle-usage, - logging-fstring-interpolation,no-member + logging-fstring-interpolation,no-member, too-many-positional-arguments [REPORTS] output-format = text @@ -383,4 +383,4 @@ int-import-graph = [EXCEPTIONS] overgeneral-exceptions = builtins.Exception -# 5a70e4e2588f3e189eb578fb3aa1b148a823913b +# 3d6ea133547fe5894b68602b76c8d69a9d460e8c diff --git a/pylintrc_tweaks b/pylintrc_tweaks index 16eeaade..0fd97e2d 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -2,7 +2,7 @@ load-plugins = edx_lint.pylint [MESSAGES CONTROL] -disable+= no-member +disable+= no-member, too-many-positional-arguments [BASIC] const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns|logger|User)$