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:

be07c3739d/edx_lint/pylint/annotations_check.py (L379)
This commit is contained in:
Phillip Shiu
2024-04-02 04:50:18 -04:00
parent 5989d3e736
commit ed5270469a

View File

@@ -23,7 +23,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
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,
)