Skip to content

Commit

Permalink
Bump pylint from 2.15.5 to 3.1.1 (#206)
Browse files Browse the repository at this point in the history
* 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](pylint-dev/pylint@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] <support@github.com>

* Fix lint

* Fix overgeneral-exceptions

* remove dict

* wrap for readability

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
  • Loading branch information
3 people authored May 14, 2024
1 parent 41b2a59 commit 72a0353
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pycognito/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
2 changes: 1 addition & 1 deletion pycognito/aws_srp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ disable=
too-many-branches

[EXCEPTIONS]
overgeneral-exceptions=Exception
overgeneral-exceptions=builtins.Exception
4 changes: 2 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 72a0353

Please sign in to comment.