Fix all E303 pep8 errors.

This commit is contained in:
Feanil Patel
2019-12-30 12:25:38 -05:00
parent 61e1eda20d
commit 6e3fe00fff
783 changed files with 0 additions and 793 deletions

View File

@@ -3,7 +3,6 @@ Configuration for Studio API Django application
"""
from django.apps import AppConfig

View File

@@ -3,7 +3,6 @@ URLs for the Studio API app
"""
from django.conf.urls import include, url

View File

@@ -1,7 +1,6 @@
"""Tests for course run serializers"""
import datetime
import ddt

View File

@@ -1,7 +1,6 @@
"""Tests for Course run views"""
import datetime
import ddt

View File

@@ -3,7 +3,6 @@ URLs for the Studio API [Course Run]
"""
from rest_framework.routers import DefaultRouter
from .views.course_runs import CourseRunViewSet

View File

@@ -1,7 +1,6 @@
"""HTTP endpoints for the Course Run API."""
from django.conf import settings
from django.http import Http404
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication

View File

@@ -4,7 +4,6 @@ Signal handlers are connected here.
"""
from django.apps import AppConfig

View File

@@ -3,7 +3,6 @@ Celery tasks used by cms_user_tasks
"""
from boto.exception import NoAuthHandlerFound
from celery.exceptions import MaxRetriesExceededError
from celery.task import task

View File

@@ -3,7 +3,6 @@ Unit tests for integration of the django-user-tasks app and its REST API.
"""
import logging
from uuid import uuid4

View File

@@ -3,7 +3,6 @@ Admin site bindings for contentstore
"""
from config_models.admin import ConfigurationModelAdmin
from django.contrib import admin

View File

@@ -5,7 +5,6 @@ Above-modulestore level signal handlers are connected here.
"""
from django.apps import AppConfig

View File

@@ -1,7 +1,6 @@
"""Util methods for Waffle checks"""
from cms.djangoapps.contentstore.config.waffle import ENABLE_CHECKLISTS_QUALITY

View File

@@ -13,7 +13,6 @@ Current db representation:
"""
import logging
import re

View File

@@ -1,7 +1,6 @@
""" Upload file handler to help test progress bars in uploads. """
import time
from django.core.files.uploadhandler import FileUploadHandler

View File

@@ -4,7 +4,6 @@ committing and pushing the changes.
"""
import logging
import os
import subprocess

View File

@@ -4,7 +4,6 @@ erroneous certificate names.
"""
from collections import namedtuple
from django.core.management.base import BaseCommand

View File

@@ -1,7 +1,6 @@
"""Script to Empty the trashcan"""
from django.core.management.base import BaseCommand
from opaque_keys.edx.keys import CourseKey

View File

@@ -15,7 +15,6 @@ At present, it differs from Studio exports in several ways:
"""
import os
import re
import shutil

View File

@@ -14,7 +14,6 @@ attribute is set and the FEATURE['ENABLE_EXPORT_GIT'] is set.
"""
import logging
from django.core.management.base import BaseCommand, CommandError

View File

@@ -3,7 +3,6 @@ Command to migrate transcripts to django storage.
"""
import logging
from django.core.management import BaseCommand, CommandError

View File

@@ -1,7 +1,6 @@
"""Management command to restore assets from trash"""
from django.core.management.base import BaseCommand
from xmodule.contentstore.utils import restore_asset_from_trashcan

View File

@@ -1,7 +1,6 @@
"""Tests running the delete_orphan command"""
import ddt
import six
from django.core.management import CommandError, call_command

View File

@@ -3,7 +3,6 @@ Tests for exporting OLX content.
"""
import shutil
import tarfile
import unittest

View File

@@ -3,7 +3,6 @@ Tests for the fix_not_found management command
"""
import six
from django.core.management import CommandError, call_command

View File

@@ -3,7 +3,6 @@ Unittests for exporting to git via management command.
"""
import copy
import os
import shutil

View File

@@ -3,7 +3,6 @@ Unittests for importing a course via management command
"""
import os
import shutil
import tempfile

View File

@@ -3,7 +3,6 @@ Models for contentstore
"""
from config_models.models import ConfigurationModel
from django.db.models.fields import TextField

View File

@@ -3,7 +3,6 @@ Code related to the handling of Proctored Exams in Studio
"""
import logging
import six

View File

@@ -3,7 +3,6 @@ Authorization rules related to content management.
"""
import user_tasks.rules
user_tasks.rules.add_rules()

View File

@@ -1,7 +1,6 @@
""" receivers of course_published and library_updated events in order to trigger indexing task """
import logging
from datetime import datetime
from functools import wraps

View File

@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import copy
import shutil
from datetime import timedelta

View File

@@ -3,7 +3,6 @@ Tests core caching facilities.
"""
from django.test import TestCase
from opaque_keys.edx.locator import AssetLocator, CourseLocator

View File

@@ -1,7 +1,6 @@
"""Tests for CRUD Operations"""
from xmodule import templates
from xmodule.capa_module import ProblemBlock
from xmodule.course_module import CourseDescriptor

View File

@@ -3,7 +3,6 @@ Test the ability to export courses to xml from studio
"""
import copy
import os
import shutil

View File

@@ -3,7 +3,6 @@ Integration tests for importing courses containing pure XBlocks.
"""
from django.conf import settings
from xblock.core import XBlock
from xblock.fields import String

View File

@@ -3,7 +3,6 @@ Tests for the edx_proctoring integration into Studio
"""
from datetime import datetime, timedelta
import ddt

View File

@@ -1,7 +1,6 @@
"""Tests for verifying availability of resources for locking"""
import ddt
import six
from mock import Mock, patch

View File

@@ -4,7 +4,6 @@ Unit tests for video utils.
"""
from datetime import datetime
from unittest import TestCase

View File

@@ -1,7 +1,6 @@
""" Helper methods for determining user access permissions in Studio """
from student import auth
from student.roles import CourseInstructorRole

View File

@@ -1,7 +1,6 @@
# pylint: disable=missing-docstring,unused-argument
import functools
from django.http import HttpResponse, HttpResponseNotFound, HttpResponseServerError

View File

@@ -4,7 +4,6 @@ the giturl attribute is set.
"""
import logging
import six

View File

@@ -3,7 +3,6 @@ Helper methods for Studio views.
"""
from uuid import uuid4
import six

View File

@@ -3,7 +3,6 @@ Unit tests for credit eligibility UI in Studio.
"""
import mock
import six

View File

@@ -3,7 +3,6 @@ Unit tests for helpers.py.
"""
import six
from django.utils import http

View File

@@ -1,7 +1,6 @@
""" Tests for tab functions (just primitive). """
import json
from contentstore.tests.utils import CourseTestCase

View File

@@ -1,7 +1,6 @@
""" Test cases for the textbook index page. """
import json
from unittest import TestCase

View File

@@ -1,7 +1,6 @@
"""Tests for items views."""
import copy
import json
import tempfile

View File

@@ -3,7 +3,6 @@ Unit tests for the unit page.
"""
from contentstore.views.tests.utils import StudioPageTestCase
from xmodule.modulestore.django import modulestore
from xmodule.modulestore.tests.factories import ItemFactory

View File

@@ -3,7 +3,6 @@ Utilities for view tests.
"""
import json
from contentstore.tests.utils import CourseTestCase

View File

@@ -1,7 +1,6 @@
"""Views for users"""
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core.exceptions import PermissionDenied

View File

@@ -3,7 +3,6 @@ django admin page for the course creators table
"""
import logging
from smtplib import SMTPException

View File

@@ -3,7 +3,6 @@ Tests course_creators.admin.py.
"""
import mock
from django.contrib.admin.sites import AdminSite
from django.contrib.auth.models import User

View File

@@ -3,7 +3,6 @@ Tests course_creators.views.py.
"""
import mock
from django.contrib.auth.models import User
from django.core.exceptions import PermissionDenied

View File

@@ -3,7 +3,6 @@ Utilities for returning XModule JS (used by requirejs)
"""
from django.conf import settings
from django.contrib.staticfiles.storage import staticfiles_storage

View File

@@ -3,7 +3,6 @@ Django admin dashboard configuration for LMS XBlock infrastructure.
"""
from config_models.admin import ConfigurationModelAdmin, KeyedConfigurationModelAdmin
from django.contrib import admin

View File

@@ -6,7 +6,6 @@ Includes:
"""
import six
from config_models.models import ConfigurationModel
from django.db.models import TextField