From cec70038257ccc2d810966d120b3aa5e7670d56f Mon Sep 17 00:00:00 2001 From: Nicolas Clerc Date: Mon, 23 Oct 2023 11:36:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(backend)=20fix=20pylint=20cyclic?= =?UTF-8?q?=20imports=20false=20positive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With pylint update to version 3, some false positives related to cyclic imports have appeared. This is probaly related to https://github.com/pylint-dev/pylint/issues/9175 We choose to ignore them in __init__.py files. --- src/backend/marsha/core/api/__init__.py | 2 +- src/backend/marsha/core/models/__init__.py | 2 +- src/backend/marsha/core/serializers/__init__.py | 2 +- src/backend/marsha/core/utils/medialive_utils/__init__.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/marsha/core/api/__init__.py b/src/backend/marsha/core/api/__init__.py index 72836b4279..d5a738d134 100644 --- a/src/backend/marsha/core/api/__init__.py +++ b/src/backend/marsha/core/api/__init__.py @@ -1,5 +1,5 @@ """Make all APIs available from marsha.core.apis.""" -# pylint: disable=wildcard-import,unused-wildcard-import +# pylint: disable=wildcard-import,unused-wildcard-import,cyclic-import from .account import * # noqa isort:skip from .base import * # noqa isort:skip from .file import * # noqa isort:skip diff --git a/src/backend/marsha/core/models/__init__.py b/src/backend/marsha/core/models/__init__.py index 8e32a4b7b6..1f54404c25 100644 --- a/src/backend/marsha/core/models/__init__.py +++ b/src/backend/marsha/core/models/__init__.py @@ -1,5 +1,5 @@ """Make all models available from marsha.core.models.""" -# pylint: disable=wildcard-import,unused-wildcard-import +# pylint: disable=wildcard-import,unused-wildcard-import,cyclic-import from .account import * # noqa isort:skip from .file import * # noqa isort:skip from .playlist import * # noqa isort:skip diff --git a/src/backend/marsha/core/serializers/__init__.py b/src/backend/marsha/core/serializers/__init__.py index bdde8d4359..f569d89acd 100644 --- a/src/backend/marsha/core/serializers/__init__.py +++ b/src/backend/marsha/core/serializers/__init__.py @@ -1,5 +1,5 @@ """Make all serializers available from marsha.core.serializers.""" -# pylint: disable=wildcard-import,unused-wildcard-import +# pylint: disable=wildcard-import,unused-wildcard-import,cyclic-import from .account import * # noqa isort:skip from .base import * # noqa isort:skip from .file import * # noqa isort:skip diff --git a/src/backend/marsha/core/utils/medialive_utils/__init__.py b/src/backend/marsha/core/utils/medialive_utils/__init__.py index ec8b62615f..8de814a469 100644 --- a/src/backend/marsha/core/utils/medialive_utils/__init__.py +++ b/src/backend/marsha/core/utils/medialive_utils/__init__.py @@ -1,5 +1,5 @@ """Make all medialive_utils available from marsha.core.utils.medialive_utils.""" -# pylint: disable=wildcard-import,unused-wildcard-import +# pylint: disable=wildcard-import,unused-wildcard-import,cyclic-import from .medialive_action_utils import * # noqa isort:skip from .medialive_client_utils import * # noqa isort:skip from .medialive_create_utils import * # noqa isort:skip