From ed5270469a0582cbd2d2cb8e8f2150097143b8c8 Mon Sep 17 00:00:00 2001 From: Phillip Shiu Date: Tue, 2 Apr 2024 04:50:18 -0400 Subject: [PATCH] chore: bypass invalid-django-waffle-import This edx-lint check is to prevent: import waffle However, we are doing: import .waffle Where .waffle is importing correctly from edx_toggles instead of directly from the Django waffle library. See also: https://github.com/openedx/edx-lint/blob/be07c3739d73cd44d33d9d9dbf5f3119a906be9e/edx_lint/pylint/annotations_check.py#L379 --- lms/djangoapps/commerce/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/commerce/utils.py b/lms/djangoapps/commerce/utils.py index 032174d574c5..16768d341851 100644 --- a/lms/djangoapps/commerce/utils.py +++ b/lms/djangoapps/commerce/utils.py @@ -23,7 +23,7 @@ from openedx.core.djangoapps.theming import helpers as theming_helpers from .models import CommerceConfiguration -from .waffle import ( +from .waffle import ( # lint-amnesty, pylint: disable=invalid-django-waffle-import should_redirect_to_commerce_coordinator_checkout, should_redirect_to_commerce_coordinator_refunds, )