Apply manesty to convention warnings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
|
||||
# xsslint config module for edx-platform
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user