root: add lgtm
This commit is contained in:
parent
9df1e7900d
commit
6f0e292c43
12
README.md
12
README.md
|
@ -1,11 +1,11 @@
|
||||||
<img src="passbook/static/static/passbook/logo.svg" height="50" alt="passbook logo"><img src="passbook/static/static/passbook/brand_inverted.svg" height="50" alt="passbook">
|
<img src="passbook/static/static/passbook/logo.svg" height="50" alt="passbook logo"><img src="passbook/static/static/passbook/brand_inverted.svg" height="50" alt="passbook">
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## What is passbook?
|
## What is passbook?
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ class SAMLSSOBindingRedirectView(SAMLSSOView):
|
||||||
"""SAML Handler for SSO/Redirect bindings, which are sent via GET"""
|
"""SAML Handler for SSO/Redirect bindings, which are sent via GET"""
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def get(
|
def get( # lgtm [py/similar-function]
|
||||||
self, request: HttpRequest, application_slug: str
|
self, request: HttpRequest, application_slug: str
|
||||||
) -> Optional[HttpResponse]:
|
) -> Optional[HttpResponse]:
|
||||||
"""Handle REDIRECT bindings"""
|
"""Handle REDIRECT bindings"""
|
||||||
|
|
|
@ -94,8 +94,6 @@ class OAuthClient(BaseOAuthClient):
|
||||||
"oauth_callback": callback,
|
"oauth_callback": callback,
|
||||||
"token": raw_token,
|
"token": raw_token,
|
||||||
}
|
}
|
||||||
callback = request.build_absolute_uri(callback or request.path)
|
|
||||||
callback = force_text(callback)
|
|
||||||
try:
|
try:
|
||||||
response = self.session.request(
|
response = self.session.request(
|
||||||
"post",
|
"post",
|
||||||
|
|
Reference in a new issue