Merge pull request #209 from BigRoy/chore/cleanup_redundant_code

Chore: Cleanup redundant code
This commit is contained in:
Jakub Trllo 2024-03-25 10:55:54 +01:00 committed by GitHub
commit 27900e5cc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 14 additions and 16 deletions

View file

@ -50,11 +50,11 @@ class ImportTemplateLoader(load.LoaderPlugin):
self.__class__.__name__
)
def update(self, container, context):
pass
def update(self, container, context):
pass
def remove(self, container):
pass
def remove(self, container):
pass
class ImportWorkfileLoader(ImportTemplateLoader):

View file

@ -147,7 +147,6 @@ class HoudiniCreatorBase(object):
def create_instance_node(
folder_path, node_name, parent, node_type="geometry"
):
# type: (str, str, str) -> hou.Node
"""Create node representing instance.
Arguments:

View file

@ -16,7 +16,7 @@ class CreateHDA(plugin.HoudiniCreator):
maintain_selection = False
def _check_existing(self, folder_path, product_name):
# type: (str) -> bool
# type: (str, str) -> bool
"""Check if existing product name versions already exists."""
# Get all products of the current folder
project_name = self.project_name

View file

@ -40,9 +40,11 @@ class _NodeTypeAttrib(object):
return "{}.{}".format(node, self.colour_space)
def __str__(self):
return "_NodeTypeAttrib(name={}, fname={}, "
"computed_fname={}, colour_space={})".format(
self.name, self.fname, self.computed_fname, self.colour_space)
return (
"_NodeTypeAttrib(name={}, fname={}, "
"computed_fname={}, colour_space={})".format(
self.name, self.fname, self.computed_fname, self.colour_space)
)
NODETYPES = {

View file

@ -9,7 +9,6 @@ class CollectAutoImage(pyblish.api.ContextPlugin):
"""
label = "Collect Auto Image"
order = pyblish.api.CollectorOrder
hosts = ["photoshop"]
order = pyblish.api.CollectorOrder + 0.2

View file

@ -8,7 +8,6 @@ class CollectAutoImageRefresh(pyblish.api.ContextPlugin):
"""
label = "Collect Auto Image Refresh"
order = pyblish.api.CollectorOrder
hosts = ["photoshop"]
order = pyblish.api.CollectorOrder + 0.2

View file

@ -46,7 +46,6 @@ class DeadlineModule(AYONAddon, IPluginPaths):
@staticmethod
def get_deadline_pools(webservice, log=None):
# type: (str) -> list
"""Get pools from Deadline.
Args:
webservice (str): Server url.

View file

@ -9,11 +9,11 @@ class CollectDefaultDeadlineServer(pyblish.api.ContextPlugin):
DL webservice addresses must be configured first in System Settings for
project settings enum to work.
Default webservice could be overriden by
Default webservice could be overridden by
`project_settings/deadline/deadline_servers`. Currently only single url
is expected.
This url could be overriden by some hosts directly on instances with
This url could be overridden by some hosts directly on instances with
`CollectDeadlineServerFromInstance`.
"""

View file

@ -149,7 +149,7 @@ class ValidateExpectedFiles(pyblish.api.InstancePlugin):
"""
# no frames in file name at all, eg 'renderCompositingMain.withLut.mov'
if not frame_placeholder:
return set([file_name_template])
return {file_name_template}
real_expected_rendered = set()
src_padding_exp = "%0{}d".format(len(frame_placeholder))

View file

@ -404,7 +404,7 @@ class OpenPypeTileAssembler(DeadlinePlugin):
Args:
output_width (int): Width of output image.
output_height (int): Height of output image.
tiles_info (list): List of tile items, each item must be
tile_info (list): List of tile items, each item must be
dictionary with `filepath`, `pos_x` and `pos_y` keys
representing path to file and x, y coordinates on output
image where top-left point of tile item should start.