Skip to content

Commit

Permalink
Bump pylint from 2.4.4 to 2.6.0 (#27)
Browse files Browse the repository at this point in the history
* Bump pylint from 2.4.4 to 2.6.0

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.4.4 to 2.6.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog)
- [Commits](pylint-dev/pylint@pylint-2.4.4...pylint-2.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix black

* Fix devcontainer

* fix lint

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
  • Loading branch information
3 people authored Jan 10, 2021
1 parent 5539552 commit fe99470
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pycognito/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __setattr__(self, name, value):
if name in list(self.__dict__.get("_data", {}).keys()):
self._data[name] = value
else:
super(UserObj, self).__setattr__(name, value)
super().__setattr__(name, value)

def save(self, admin=False):
if admin:
Expand Down Expand Up @@ -234,7 +234,9 @@ def verify_token(self, token, id_name, token_use):
issuer=unverified_claims.get("iss"),
)
except JWTError:
raise TokenVerificationException("Your {} token could not be verified.")
raise TokenVerificationException(
"Your {} token could not be verified."
) from None
setattr(self, id_name, token)
return verified

Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ mock==4.0.3
coverage==5.3.1
black==20.8b1
flake8==3.8.4
pylint==2.4.4
pylint==2.6.0
pytest==6.2.1

0 comments on commit fe99470

Please sign in to comment.