From 6f0e292c436923cfd0e76a800b5d763c1a777efd Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 15 Jun 2020 11:56:20 +0200 Subject: [PATCH] root: add lgtm --- README.md | 12 ++++++------ passbook/providers/saml/views.py | 2 +- passbook/sources/oauth/clients.py | 2 -- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b18652a77..33d7dd192 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ passbook logopassbook -![](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? diff --git a/passbook/providers/saml/views.py b/passbook/providers/saml/views.py index a8497fed9..8c182ecc3 100644 --- a/passbook/providers/saml/views.py +++ b/passbook/providers/saml/views.py @@ -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""" diff --git a/passbook/sources/oauth/clients.py b/passbook/sources/oauth/clients.py index 35c58d7ba..0b3cb85f8 100644 --- a/passbook/sources/oauth/clients.py +++ b/passbook/sources/oauth/clients.py @@ -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",