Tell isort not to sort certain imports in cms/
This commit is contained in:
committed by
Kyle McCormick
parent
538dbf696b
commit
d21a330d0a
@@ -1,6 +1,9 @@
|
||||
"""
|
||||
Celery needs to be loaded when the cms modules are so that task
|
||||
registration and discovery can work correctly.
|
||||
|
||||
Import sorting is intentionally disabled in this module.
|
||||
isort:skip_file
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ from openedx.core.pytest_hooks import DeferPlugin
|
||||
|
||||
|
||||
# Patch the xml libs before anything else.
|
||||
from safe_lxml import defuse_xml_libs
|
||||
from safe_lxml import defuse_xml_libs # isort:skip
|
||||
defuse_xml_libs()
|
||||
|
||||
|
||||
|
||||
@@ -304,9 +304,9 @@ if 'openedx.testing.coverage_context_listener' in settings.INSTALLED_APPS:
|
||||
]
|
||||
|
||||
# pylint: disable=wrong-import-position, wrong-import-order
|
||||
from edx_django_utils.plugins import get_plugin_url_patterns
|
||||
from edx_django_utils.plugins import get_plugin_url_patterns # isort:skip
|
||||
# pylint: disable=wrong-import-position
|
||||
from openedx.core.djangoapps.plugins.constants import ProjectType
|
||||
from openedx.core.djangoapps.plugins.constants import ProjectType # isort:skip
|
||||
urlpatterns.extend(get_plugin_url_patterns(ProjectType.CMS))
|
||||
|
||||
# Contentstore
|
||||
|
||||
@@ -6,6 +6,9 @@ and any production WSGI deployments.
|
||||
It exposes a module-level variable named ``application``. Django's
|
||||
``runserver`` and ``runfcgi`` commands discover this application via the
|
||||
``WSGI_APPLICATION`` setting.
|
||||
|
||||
Import sorting is intentionally disabled in this module.
|
||||
isort:skip_file
|
||||
"""
|
||||
|
||||
# Patch the xml libs before anything else.
|
||||
|
||||
Reference in New Issue
Block a user