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">
|
||||
|
||||
![](https://img.shields.io/github/workflow/status/beryju/passbook/passbook-ci?style=flat-square)
|
||||
![](https://img.shields.io/docker/pulls/beryju/passbook.svg?style=flat-square)
|
||||
![](https://img.shields.io/docker/pulls/beryju/passbook-gatekeeper.svg?style=flat-square)
|
||||
![](https://img.shields.io/docker/pulls/beryju/passbook-static.svg?style=flat-square)
|
||||
![](https://img.shields.io/docker/v/beryju/passbook?sort=semver&style=flat-square)
|
||||
![](https://img.shields.io/codecov/c/gh/beryju/passbook?style=flat-square)
|
||||
![CI Build status](https://img.shields.io/github/workflow/status/beryju/passbook/passbook-ci?style=flat-square)
|
||||
![Docker pulls](https://img.shields.io/docker/pulls/beryju/passbook.svg?style=flat-square)
|
||||
![Docker pulls (gatekeeper)](https://img.shields.io/docker/pulls/beryju/passbook-gatekeeper.svg?style=flat-square)
|
||||
![Latest version](https://img.shields.io/docker/v/beryju/passbook?sort=semver&style=flat-square)
|
||||
![LGTM Grade](https://img.shields.io/lgtm/grade/python/github/BeryJu/passbook?style=flat-square)
|
||||
![Code Coverage](https://img.shields.io/codecov/c/gh/beryju/passbook?style=flat-square)
|
||||
|
||||
## What is passbook?
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ class SAMLSSOBindingRedirectView(SAMLSSOView):
|
|||
"""SAML Handler for SSO/Redirect bindings, which are sent via GET"""
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def get(
|
||||
def get( # lgtm [py/similar-function]
|
||||
self, request: HttpRequest, application_slug: str
|
||||
) -> Optional[HttpResponse]:
|
||||
"""Handle REDIRECT bindings"""
|
||||
|
|
|
@ -94,8 +94,6 @@ class OAuthClient(BaseOAuthClient):
|
|||
"oauth_callback": callback,
|
||||
"token": raw_token,
|
||||
}
|
||||
callback = request.build_absolute_uri(callback or request.path)
|
||||
callback = force_text(callback)
|
||||
try:
|
||||
response = self.session.request(
|
||||
"post",
|
||||
|
|
Reference in New Issue