diff --git a/setup.cfg b/setup.cfg index f36e0f8b0203..987f4474531f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -183,9 +183,10 @@ isolated_apps = openedx.core.djangoapps.xblock openedx.core.lib.xblock_serializer allowed_modules = - # Only imports from api.py are allowed elsewhere in the code + # Only imports from api.py and data.py are allowed elsewhere in the code # See https://open-edx-proposals.readthedocs.io/en/latest/best-practices/oep-0049-django-app-patterns.html#api-py api + data [importlinter:contract:3] name = Do not import apps from openedx-learning (only import from openedx_learning.api.* and openedx_learning.lib.*).