Skip to content

Commit

Permalink
chore: suppressed too-many-positional-arguments rule
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Oct 24, 2024
1 parent 9854b5a commit 52b3f4f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion edx_rest_framework_extensions/auth/jwt/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion edx_rest_framework_extensions/tests/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -383,4 +383,4 @@ int-import-graph =
[EXCEPTIONS]
overgeneral-exceptions = builtins.Exception

# 5a70e4e2588f3e189eb578fb3aa1b148a823913b
# 3d6ea133547fe5894b68602b76c8d69a9d460e8c
2 changes: 1 addition & 1 deletion pylintrc_tweaks
Original file line number Diff line number Diff line change
Expand Up @@ -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)$

0 comments on commit 52b3f4f

Please sign in to comment.