From ae608efdbc8c2c0aa15ec5efd141669ae2ed6afe Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Fri, 18 Dec 2020 17:25:23 +0100 Subject: [PATCH] hound fixes --- pype/hosts/resolve/todo-rendering.py | 3 +-- pype/hosts/resolve/utility_scripts/OTIO_export.py | 5 ++--- pype/hosts/resolve/utility_scripts/OTIO_import.py | 5 ++--- pype/lib/__init__.py | 6 +++--- pype/plugins/resolve/publish/extract_workfile.py | 1 + 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/pype/hosts/resolve/todo-rendering.py b/pype/hosts/resolve/todo-rendering.py index cff9eebead..87b04dd98f 100644 --- a/pype/hosts/resolve/todo-rendering.py +++ b/pype/hosts/resolve/todo-rendering.py @@ -6,9 +6,8 @@ Load a still from DRX file, apply the still to all clips in all timelines. Set render format and codec, add render jobs for all timelines, render to specified path and wait for rendering completion. Once render is complete, delete all jobs - -clonned from: https://github.com/survos/transcribe/blob/fe3cf51eb95b82dabcf21fbe5f89bfb3d8bb6ce2/python/3_grade_and_render_all_timelines.py """ +# clonned from: https://github.com/survos/transcribe/blob/fe3cf51eb95b82dabcf21fbe5f89bfb3d8bb6ce2/python/3_grade_and_render_all_timelines.py # noqa from python_get_resolve import GetResolve import sys diff --git a/pype/hosts/resolve/utility_scripts/OTIO_export.py b/pype/hosts/resolve/utility_scripts/OTIO_export.py index 3e08cb370d..a1142f56dd 100644 --- a/pype/hosts/resolve/utility_scripts/OTIO_export.py +++ b/pype/hosts/resolve/utility_scripts/OTIO_export.py @@ -1,13 +1,12 @@ #!/usr/bin/env python import os -import sys from pype.hosts.resolve.otio import davinci_export as otio_export -resolve = bmd.scriptapp("Resolve") +resolve = bmd.scriptapp("Resolve") # noqa fu = resolve.Fusion() ui = fu.UIManager -disp = bmd.UIDispatcher(fu.UIManager) +disp = bmd.UIDispatcher(fu.UIManager) # noqa title_font = ui.Font({"PixelSize": 18}) diff --git a/pype/hosts/resolve/utility_scripts/OTIO_import.py b/pype/hosts/resolve/utility_scripts/OTIO_import.py index 879f7eb0b5..5719ec3e3c 100644 --- a/pype/hosts/resolve/utility_scripts/OTIO_import.py +++ b/pype/hosts/resolve/utility_scripts/OTIO_import.py @@ -1,12 +1,11 @@ #!/usr/bin/env python import os -import sys from pype.hosts.resolve.otio import davinci_import as otio_import -resolve = bmd.scriptapp("Resolve") +resolve = bmd.scriptapp("Resolve") # noqa fu = resolve.Fusion() ui = fu.UIManager -disp = bmd.UIDispatcher(fu.UIManager) +disp = bmd.UIDispatcher(fu.UIManager) # noqa title_font = ui.Font({"PixelSize": 18}) diff --git a/pype/lib/__init__.py b/pype/lib/__init__.py index 7992815a75..598dd757b8 100644 --- a/pype/lib/__init__.py +++ b/pype/lib/__init__.py @@ -143,10 +143,10 @@ __all__ = [ "IniSettingRegistry", "JSONSettingRegistry", "PypeSettingsRegistry", - "timeit" + "timeit", "is_overlapping_otio_ranges", "otio_range_with_handles", - "convert_to_padded_path" - "otio_range_to_frame_range", + "convert_to_padded_path", + "otio_range_to_frame_range" ] diff --git a/pype/plugins/resolve/publish/extract_workfile.py b/pype/plugins/resolve/publish/extract_workfile.py index a88794841b..e52e829ee4 100644 --- a/pype/plugins/resolve/publish/extract_workfile.py +++ b/pype/plugins/resolve/publish/extract_workfile.py @@ -3,6 +3,7 @@ import pyblish.api import pype.api from pype.hosts import resolve + class ExtractWorkfile(pype.api.Extractor): """ Extractor export DRP workfile file representation