diff --git a/common/djangoapps/edxmako/shortcuts.py b/common/djangoapps/edxmako/shortcuts.py index 2a9d8849cb..a8b0e7a0d9 100644 --- a/common/djangoapps/edxmako/shortcuts.py +++ b/common/djangoapps/edxmako/shortcuts.py @@ -25,7 +25,7 @@ from django.core.exceptions import ValidationError from edx_django_utils.monitoring import set_custom_attribute from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers -from xmodule.util.xmodule_django import get_current_request_hostname +from xmodule.util.xmodule_django import get_current_request_hostname # lint-amnesty, pylint: disable=wrong-import-order from . import Engines diff --git a/common/djangoapps/split_modulestore_django/tests/test_models.py b/common/djangoapps/split_modulestore_django/tests/test_models.py index 2205f7ab55..cc32222f3f 100644 --- a/common/djangoapps/split_modulestore_django/tests/test_models.py +++ b/common/djangoapps/split_modulestore_django/tests/test_models.py @@ -6,7 +6,7 @@ from django.test import TestCase from opaque_keys.edx.keys import CourseKey from common.djangoapps.split_modulestore_django.models import SplitModulestoreCourseIndex -from xmodule.modulestore import ModuleStoreEnum +from xmodule.modulestore import ModuleStoreEnum # lint-amnesty, pylint: disable=wrong-import-order class SplitModulestoreCourseIndexTest(TestCase): diff --git a/common/djangoapps/static_replace/test/test_static_replace.py b/common/djangoapps/static_replace/test/test_static_replace.py index a6a29696ce..4b2d8cb7f2 100644 --- a/common/djangoapps/static_replace/test/test_static_replace.py +++ b/common/djangoapps/static_replace/test/test_static_replace.py @@ -19,16 +19,16 @@ from common.djangoapps.static_replace import ( replace_course_urls, replace_static_urls ) -from xmodule.assetstore.assetmgr import AssetManager -from xmodule.contentstore.content import StaticContent -from xmodule.contentstore.django import contentstore -from xmodule.exceptions import NotFoundError -from xmodule.modulestore import ModuleStoreEnum -from xmodule.modulestore.exceptions import ItemNotFoundError -from xmodule.modulestore.mongo import MongoModuleStore -from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase -from xmodule.modulestore.tests.factories import CourseFactory, check_mongo_calls -from xmodule.modulestore.xml import XMLModuleStore +from xmodule.assetstore.assetmgr import AssetManager # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.contentstore.content import StaticContent # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.contentstore.django import contentstore # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.exceptions import NotFoundError # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore import ModuleStoreEnum # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore.exceptions import ItemNotFoundError # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore.mongo import MongoModuleStore # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore.tests.factories import CourseFactory, check_mongo_calls # lint-amnesty, pylint: disable=wrong-import-order +from xmodule.modulestore.xml import XMLModuleStore # lint-amnesty, pylint: disable=wrong-import-order DATA_DIRECTORY = 'data_dir' COURSE_KEY = CourseKey.from_string('org/course/run') diff --git a/common/djangoapps/third_party_auth/samlproviderdata/tests/test_samlproviderdata.py b/common/djangoapps/third_party_auth/samlproviderdata/tests/test_samlproviderdata.py index b23325e347..2ceb1e968e 100644 --- a/common/djangoapps/third_party_auth/samlproviderdata/tests/test_samlproviderdata.py +++ b/common/djangoapps/third_party_auth/samlproviderdata/tests/test_samlproviderdata.py @@ -1,8 +1,8 @@ # pylint: disable=missing-module-docstring import copy import pytz -from uuid import uuid4 -from datetime import datetime +from uuid import uuid4 # lint-amnesty, pylint: disable=wrong-import-order +from datetime import datetime # lint-amnesty, pylint: disable=wrong-import-order from django.contrib.sites.models import Site from django.urls import reverse from django.utils.http import urlencode diff --git a/common/djangoapps/track/tests/test_shim.py b/common/djangoapps/track/tests/test_shim.py index 6e08a5fd3e..68500594fe 100644 --- a/common/djangoapps/track/tests/test_shim.py +++ b/common/djangoapps/track/tests/test_shim.py @@ -8,7 +8,7 @@ import ddt from django.test.utils import override_settings from openedx.core.lib.tests.assertions.events import assert_events_equal -from opaque_keys.edx.locator import CourseLocator +from opaque_keys.edx.locator import CourseLocator # lint-amnesty, pylint: disable=wrong-import-order from .. import transformers from ..shim import PrefixedEventProcessor