diff --git a/lms/djangoapps/certificates/tests/test_queue.py b/lms/djangoapps/certificates/tests/test_queue.py index 1a8938df74..60d5f0b3ca 100644 --- a/lms/djangoapps/certificates/tests/test_queue.py +++ b/lms/djangoapps/certificates/tests/test_queue.py @@ -16,12 +16,12 @@ import six # and verify that items are being correctly added to the queue # in our `XQueueCertInterface` implementation. from capa.xqueue_interface import XQueueInterface -from django.conf import settings -from django.test import TestCase -from django.test.utils import override_settings -from mock import Mock, patch -from opaque_keys.edx.locator import CourseLocator -from testfixtures import LogCapture +from django.conf import settings # lint-amnesty, pylint: disable=wrong-import-order +from django.test import TestCase # lint-amnesty, pylint: disable=wrong-import-order +from django.test.utils import override_settings # lint-amnesty, pylint: disable=wrong-import-order +from mock import Mock, patch # lint-amnesty, pylint: disable=wrong-import-order +from opaque_keys.edx.locator import CourseLocator # lint-amnesty, pylint: disable=wrong-import-order +from testfixtures import LogCapture # lint-amnesty, pylint: disable=wrong-import-order from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase from xmodule.modulestore.tests.factories import CourseFactory diff --git a/lms/djangoapps/instructor_task/tests/test_tasks_helper.py b/lms/djangoapps/instructor_task/tests/test_tasks_helper.py index bd23fa3587..df9e530fc7 100644 --- a/lms/djangoapps/instructor_task/tests/test_tasks_helper.py +++ b/lms/djangoapps/instructor_task/tests/test_tasks_helper.py @@ -19,15 +19,15 @@ from datetime import datetime, timedelta import ddt import unicodecsv from capa.tests.response_xml_factory import MultipleChoiceResponseXMLFactory -from django.conf import settings -from django.test.utils import override_settings -from edx_django_utils.cache import RequestCache -from freezegun import freeze_time -from mock import ANY, MagicMock, Mock, patch -from pytz import UTC -from six import text_type -from six.moves import range, zip -from six.moves.urllib.parse import quote +from django.conf import settings # lint-amnesty, pylint: disable=wrong-import-order +from django.test.utils import override_settings # lint-amnesty, pylint: disable=wrong-import-order +from edx_django_utils.cache import RequestCache # lint-amnesty, pylint: disable=wrong-import-order +from freezegun import freeze_time # lint-amnesty, pylint: disable=wrong-import-order +from mock import ANY, MagicMock, Mock, patch # lint-amnesty, pylint: disable=wrong-import-order +from pytz import UTC # lint-amnesty, pylint: disable=wrong-import-order +from six import text_type # lint-amnesty, pylint: disable=wrong-import-order +from six.moves import range, zip # lint-amnesty, pylint: disable=wrong-import-order +from six.moves.urllib.parse import quote # lint-amnesty, pylint: disable=wrong-import-order from xmodule.modulestore import ModuleStoreEnum from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory, check_mongo_calls diff --git a/openedx/core/djangoapps/bookmarks/settings/common.py b/openedx/core/djangoapps/bookmarks/settings/common.py index 3d6ea979f5..e350eea256 100644 --- a/openedx/core/djangoapps/bookmarks/settings/common.py +++ b/openedx/core/djangoapps/bookmarks/settings/common.py @@ -1,3 +1,4 @@ +# lint-amnesty, pylint: disable=missing-module-docstring def plugin_settings(settings): # Course Content Bookmarks Settings settings.MAX_BOOKMARKS_PER_COURSE = 100 diff --git a/scripts/show_events.py b/scripts/show_events.py index 7b3570e3d5..06be6f57e2 100644 --- a/scripts/show_events.py +++ b/scripts/show_events.py @@ -1,3 +1,4 @@ +# lint-amnesty, pylint: disable=django-not-configured """ Show Event outputs. """ @@ -10,7 +11,7 @@ import traceback try: import dateutil.parser except ImportError: - def date_string(ds, fmt=''): + def date_string(ds, fmt=''): # lint-amnesty, pylint: disable=unused-argument return ds else: def date_string(ds, fmt='%Y-%m-%d %H:%M:%S.%f'): @@ -18,7 +19,7 @@ else: return d.strftime(fmt) -def display(message): +def display(message): # lint-amnesty, pylint: disable=missing-function-docstring print('{} - {}'.format(date_string(message['time']), message['event_type'])) if message.get('event'): event = json.loads(message['event']) @@ -33,6 +34,6 @@ while 1: try: obj = json.loads(line) display(obj) - except Exception: + except Exception: # lint-amnesty, pylint: disable=broad-except traceback.print_exc() continue diff --git a/scripts/xsslint_config.py b/scripts/xsslint_config.py index b45684cb78..8de7d43c5b 100644 --- a/scripts/xsslint_config.py +++ b/scripts/xsslint_config.py @@ -1,3 +1,4 @@ +# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring # xsslint config module for edx-platform