From 23c4276ec62fab02795245000046cd8be7d3b133 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Thu, 17 Oct 2024 12:08:01 -0400 Subject: [PATCH] test: add data.py to acceptable isolated app imports Per OEP-49, both api.py and data.py are allowed to be imported into other apps: https://open-edx-proposals.readthedocs.io/en/latest/best-practices/oep-0049-django-app-patterns.html#api-py --- setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.*).