From b60f8769f09267fce4338fc7d758d327bb228656 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 17 Jul 2024 11:13:54 +0200 Subject: [PATCH 1/2] remove unused import --- client/ayon_openrv/plugins/load/openrv/load_frames.py | 5 +---- client/ayon_openrv/plugins/load/openrv/load_mov.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/client/ayon_openrv/plugins/load/openrv/load_frames.py b/client/ayon_openrv/plugins/load/openrv/load_frames.py index 6d66768..14b4e7a 100644 --- a/client/ayon_openrv/plugins/load/openrv/load_frames.py +++ b/client/ayon_openrv/plugins/load/openrv/load_frames.py @@ -2,10 +2,7 @@ import clique -from ayon_core.pipeline import ( - load, - get_representation_context -) +from ayon_core.pipeline import load from ayon_core.pipeline.load import get_representation_path_from_context from ayon_core.lib.transcoding import IMAGE_EXTENSIONS diff --git a/client/ayon_openrv/plugins/load/openrv/load_mov.py b/client/ayon_openrv/plugins/load/openrv/load_mov.py index 49ca2b1..2aaa45d 100644 --- a/client/ayon_openrv/plugins/load/openrv/load_mov.py +++ b/client/ayon_openrv/plugins/load/openrv/load_mov.py @@ -1,7 +1,4 @@ -from ayon_core.pipeline import ( - load, - get_representation_context -) +from ayon_core.pipeline import load from ayon_openrv.api.pipeline import imprint_container from ayon_openrv.api.ocio import ( set_group_ocio_active_state, From bd805745c8408679fce0e75ff465c4d8381082a3 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 17 Jul 2024 11:14:11 +0200 Subject: [PATCH 2/2] mark noqa ignore properly --- client/ayon_openrv/api/ocio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/ayon_openrv/api/ocio.py b/client/ayon_openrv/api/ocio.py index 6b848b1..882ee88 100644 --- a/client/ayon_openrv/api/ocio.py +++ b/client/ayon_openrv/api/ocio.py @@ -41,7 +41,8 @@ def set_group_ocio_colorspace(group, colorspace): This only works if OCIO is already 'active' for the group. T """ - import ocio_source_setup # noqa, RV OCIO package + # RV OCIO package + import ocio_source_setup # noqa: F401 node = get_group_ocio_file_node(group) if not node: