Merge pull request #22649 from edx/feanil/fix_pep8

Fix all E303 pep8 errors.
This commit is contained in:
Feanil Patel
2019-12-30 13:32:26 -05:00
committed by GitHub
784 changed files with 0 additions and 794 deletions

View File

@@ -3,7 +3,6 @@ Account constants
"""
from django.utils.text import format_lazy
from django.utils.translation import ugettext_lazy as _

View File

@@ -3,7 +3,6 @@ Django forms for accounts
"""
from django import forms
from django.core.exceptions import ValidationError

View File

@@ -1,7 +1,6 @@
""" Views related to Account Settings. """
import logging
from datetime import datetime

View File

@@ -3,7 +3,6 @@ Django Signal related functionality for user_api accounts
"""
from django.dispatch import Signal
# Signal to retire a user from LMS-initiated mailings (course mailings, etc)

View File

@@ -5,7 +5,6 @@ Most of the functionality is covered in test_views.py.
"""
import itertools
import re
import unicodedata

View File

@@ -1,7 +1,6 @@
""" Unit tests for custom UserProfile properties. """
import ddt
from completion import models
from completion.test_utils import CompletionWaffleTestMixin

View File

@@ -4,7 +4,6 @@ Utility functions, constants, etc. for testing.
"""
from openedx.core.djangoapps.user_api.accounts import EMAIL_MAX_LENGTH, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH
from util.password_policy_validators import DEFAULT_MAX_PASSWORD_LENGTH

View File

@@ -8,7 +8,6 @@ UserCourseTag model.
"""
from collections import defaultdict
from openedx.core.lib.cache_utils import get_cache

View File

@@ -3,7 +3,6 @@ Defines the URL routes for this app.
"""
from django.conf import settings
from django.conf.urls import include, url
from rest_framework import routers

View File

@@ -17,7 +17,6 @@ will be have the 'email-optin' tag set to 'False'.
"""
import csv
import logging
import time

View File

@@ -5,7 +5,6 @@ Optionally takes in username, email, and course UUID arguments.
"""
from datetime import datetime
from textwrap import dedent
from uuid import uuid4

View File

@@ -3,7 +3,6 @@ Message Types for user_api emails
"""
from django.conf import settings
from openedx.core.djangoapps.ace_common.message import BaseMessageType

View File

@@ -4,7 +4,6 @@ Adds user's tags to tracking event context.
"""
from eventtracking import tracker
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey

View File

@@ -4,7 +4,6 @@ Unit tests for preference APIs.
"""
import json
import ddt

View File

@@ -1,7 +1,6 @@
"""Tests for the user API at the HTTP request level. """
import json
from unittest import skipUnless

View File

@@ -3,7 +3,6 @@ Defines the URL routes for this app.
"""
from django.conf import settings
from django.conf.urls import url

View File

@@ -1,7 +1,6 @@
"""HTTP end-points for the User API. """
from django.contrib.auth.models import User
from django.core.exceptions import NON_FIELD_ERRORS, PermissionDenied, ValidationError
from django.db import transaction