From 72a03531097fef443e7914efeada59826f2cea87 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 12:04:07 +0200 Subject: [PATCH] Bump pylint from 2.15.5 to 3.1.1 (#206) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump pylint from 2.15.5 to 2.17.0 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.5 to 2.17.0. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.15.5...v2.17.0) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix lint * Fix overgeneral-exceptions * remove dict * wrap for readability --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Vizeli Co-authored-by: Joakim Sørensen --- pycognito/__init__.py | 4 ++-- pycognito/aws_srp.py | 2 +- pylintrc | 2 +- requirements_test.txt | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pycognito/__init__.py b/pycognito/__init__.py index 2b2d9b2c..b6a52ef6 100644 --- a/pycognito/__init__.py +++ b/pycognito/__init__.py @@ -491,8 +491,8 @@ def authenticate(self, password, client_metadata=None): except MFAChallengeException as mfa_challenge: self.mfa_tokens = mfa_challenge.get_tokens() raise mfa_challenge - else: - self._set_tokens(tokens) + + self._set_tokens(tokens) def new_password_challenge(self, password, new_password): """ diff --git a/pycognito/aws_srp.py b/pycognito/aws_srp.py index b1621a6d..c08b49c4 100644 --- a/pycognito/aws_srp.py +++ b/pycognito/aws_srp.py @@ -399,7 +399,7 @@ def authenticate_user(self, client=None, client_metadata=None): ClientId=self.client_id, ChallengeName=self.PASSWORD_VERIFIER_CHALLENGE, ChallengeResponses=challenge_response, - **dict(ClientMetadata=client_metadata) if client_metadata else {}, + **({"ClientMetadata": client_metadata} if client_metadata else {}), ) if tokens.get("ChallengeName") == self.DEVICE_SRP_CHALLENGE: challenge_response = { diff --git a/pylintrc b/pylintrc index c3db8f9a..c5c79c9f 100644 --- a/pylintrc +++ b/pylintrc @@ -41,4 +41,4 @@ disable= too-many-branches [EXCEPTIONS] -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception diff --git a/requirements_test.txt b/requirements_test.txt index 684b5ef2..534b05e9 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,8 +1,8 @@ mock==4.0.3 coverage==7.5.1 black==24.4.2 -flake8==6.0.0 -pylint==2.15.5 +flake8==7.0.0 +pylint==3.1.1 pytest==8.2.0 moto[cognitoidp]>=5.0.0 requests-mock==1.12.1