mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #500 from ynput/enhancement/ruff-cleanup
Chore: Ruff cleanup
This commit is contained in:
commit
342c804206
5 changed files with 1 additions and 9 deletions
|
|
@ -6,12 +6,9 @@ import json
|
||||||
from typing import Any, Dict, Union
|
from typing import Any, Dict, Union
|
||||||
|
|
||||||
import six
|
import six
|
||||||
import ayon_api
|
|
||||||
|
|
||||||
from ayon_core.pipeline import (
|
from ayon_core.pipeline import (
|
||||||
get_current_project_name,
|
get_current_project_name,
|
||||||
get_current_folder_path,
|
|
||||||
get_current_task_name,
|
|
||||||
colorspace
|
colorspace
|
||||||
)
|
)
|
||||||
from ayon_core.settings import get_project_settings
|
from ayon_core.settings import get_project_settings
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ from ayon_core.lib import (
|
||||||
BoolDef,
|
BoolDef,
|
||||||
NumberDef,
|
NumberDef,
|
||||||
)
|
)
|
||||||
from ayon_core.pipeline import CreatedInstance
|
|
||||||
|
|
||||||
|
|
||||||
def _get_animation_attr_defs(cls):
|
def _get_animation_attr_defs(cls):
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import os
|
|
||||||
|
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
import pyblish.util
|
import pyblish.util
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -467,8 +467,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
|
||||||
|
|
||||||
# Inject deadline url to instances to query DL for job id for overrides
|
# Inject deadline url to instances to query DL for job id for overrides
|
||||||
for inst in instances:
|
for inst in instances:
|
||||||
if not "deadline" in inst:
|
|
||||||
inst["deadline"] = {}
|
|
||||||
inst["deadline"] = instance.data["deadline"]
|
inst["deadline"] = instance.data["deadline"]
|
||||||
|
|
||||||
# publish job file
|
# publish job file
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ class ValidateDeadlinePools(OptionalPyblishPluginMixin,
|
||||||
auth=auth,
|
auth=auth,
|
||||||
log=self.log)
|
log=self.log)
|
||||||
# some DL return "none" as a pool name
|
# some DL return "none" as a pool name
|
||||||
if not "none" in pools:
|
if "none" not in pools:
|
||||||
pools.append("none")
|
pools.append("none")
|
||||||
self.log.info("Available pools: {}".format(pools))
|
self.log.info("Available pools: {}".format(pools))
|
||||||
self.pools_per_url[deadline_url] = pools
|
self.pools_per_url[deadline_url] = pools
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue