Fix all E303 pep8 errors.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""Third party authentication. """
|
||||
|
||||
|
||||
|
||||
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
|
||||
|
||||
default_app_config = 'third_party_auth.apps.ThirdPartyAuthConfig'
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Django REST Framework Serializers """
|
||||
|
||||
|
||||
|
||||
from rest_framework import serializers
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" URL configuration for the third party auth API """
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Third Party Auth REST API views
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
|
||||
|
||||
from django.apps import AppConfig
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Middleware classes for third_party_auth."""
|
||||
|
||||
|
||||
|
||||
import six.moves.urllib.parse # pylint: disable=import-error
|
||||
from django.contrib import messages
|
||||
from django.shortcuts import redirect
|
||||
|
||||
@@ -58,7 +58,6 @@ See https://python-social-auth.readthedocs.io/en/latest/pipeline.html for more d
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import base64
|
||||
import hashlib
|
||||
import hmac
|
||||
|
||||
@@ -4,7 +4,6 @@ ConfigurationModels rather than django.settings
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from social_core.backends.oauth import OAuthAuth
|
||||
from social_django.strategy import DjangoStrategy
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ Code to manage fetching and storing the metadata of IdPs.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import datetime
|
||||
import logging
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Mock data for SAMLIdentityProvider"""
|
||||
|
||||
|
||||
|
||||
from social_core.backends.saml import OID_MAIL, OID_GIVEN_NAME, OID_SURNAME, OID_COMMON_NAME, OID_USERID
|
||||
|
||||
expected_user_details = {
|
||||
|
||||
@@ -3,7 +3,6 @@ Unit tests for third_party_auth LTI auth providers
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from oauthlib.common import Request
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Unit tests for third_party_auth/pipeline.py."""
|
||||
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from third_party_auth import pipeline
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Integration tests for pipeline.py."""
|
||||
|
||||
|
||||
|
||||
import datetime
|
||||
import unittest
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Unit tests for provider.py."""
|
||||
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from django.contrib.sites.models import Site
|
||||
|
||||
@@ -3,7 +3,6 @@ Unit tests for third_party_auth SAML auth providers
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import mock
|
||||
|
||||
from third_party_auth.saml import EdXSAMLIdentityProvider, get_saml_idp_class
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Unit tests for settings.py."""
|
||||
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from mock import patch
|
||||
|
||||
@@ -3,7 +3,6 @@ Test the views served by third_party_auth.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
import ddt
|
||||
|
||||
@@ -5,7 +5,6 @@ Used by Django and non-Django tests; must not have Django deps.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import os.path
|
||||
from contextlib import contextmanager
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Url configuration for the auth module."""
|
||||
|
||||
|
||||
|
||||
from django.conf.urls import include, url
|
||||
|
||||
from .views import (
|
||||
|
||||
@@ -3,7 +3,6 @@ Utility functions for third_party_auth
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user