Skip to content
Snippets Groups Projects
Commit d21a330d authored by Kyle McCormick's avatar Kyle McCormick Committed by Kyle McCormick
Browse files

Tell isort not to sort certain imports in cms/

parent 538dbf69
Branches
Tags
No related merge requests found
"""
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.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment