Skip to content

Commit

Permalink
Merge pull request #512 from ynput/enhancement/cleanup-ruff
Browse files Browse the repository at this point in the history
Chore: Fix ruff comments
  • Loading branch information
iLLiCiTiT authored May 14, 2024
2 parents 9dbb857 + 7f4385c commit f86bd94
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
FileDef,
BoolDef,
TextDef,
HiddenDef
)
from ayon_core.hosts.traypublisher.api.plugin import TrayPublishCreator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ def process(self, instance):
if conversion_enabled and output_def["ext"]:
transfers = self._convert_resources(output_def, transfers)

if not "transfers" in instance.data:
instance.data["transfers"] = []
instance.data["transfers"] = transfers

source_to_rootless = self._get_resource_path_mapping(instance,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class ValidateEditorialPackage(pyblish.api.InstancePlugin):
def process(self, instance):
editorial_pckg_data = instance.data.get("editorial_pckg")
if not editorial_pckg_data:
raise PublishValidationError(
f"Editorial package not collected")
raise PublishValidationError("Editorial package not collected")

folder_path = editorial_pckg_data["folder_path"]

Expand Down
4 changes: 0 additions & 4 deletions server_addon/traypublisher/server/settings/publish_plugins.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from pydantic import validator

from ayon_server.settings import (
BaseSettingsModel,
SettingsField,
task_types_enum,
ensure_unique_names
)


Expand Down

0 comments on commit f86bd94

Please sign in to comment.