diff --git a/client/ayon_ftrack/common/event_handlers/ftrack_action_handler.py b/client/ayon_ftrack/common/event_handlers/ftrack_action_handler.py
index 88a3735c..008aa748 100644
--- a/client/ayon_ftrack/common/event_handlers/ftrack_action_handler.py
+++ b/client/ayon_ftrack/common/event_handlers/ftrack_action_handler.py
@@ -1,4 +1,3 @@
-import os
import functools
import ftrack_api
diff --git a/client/ayon_ftrack/event_handlers_user/action_applications.py b/client/ayon_ftrack/event_handlers_user/action_applications.py
index c00b487f..45bd703d 100644
--- a/client/ayon_ftrack/event_handlers_user/action_applications.py
+++ b/client/ayon_ftrack/event_handlers_user/action_applications.py
@@ -2,13 +2,11 @@
from ayon_core.addon import AddonsManager
from ayon_ftrack.common import (
- CUST_ATTR_KEY_SERVER_PATH,
is_ftrack_enabled_in_settings,
get_folder_path_for_entities,
BaseAction,
)
from ayon_applications import (
- ApplicationManager,
ApplicationLaunchFailed,
ApplicationExecutableNotFound,
)
diff --git a/client/ayon_ftrack/ftrack_addon.py b/client/ayon_ftrack/ftrack_addon.py
index 62eefedd..5f068365 100644
--- a/client/ayon_ftrack/ftrack_addon.py
+++ b/client/ayon_ftrack/ftrack_addon.py
@@ -1,5 +1,7 @@
import os
+import ayon_api
+
from ayon_core.addon import (
AYONAddon,
ITrayAddon,
diff --git a/client/ayon_ftrack/launch_hooks/post_ftrack_changes.py b/client/ayon_ftrack/launch_hooks/post_ftrack_changes.py
index cc55537d..cc51c2ad 100644
--- a/client/ayon_ftrack/launch_hooks/post_ftrack_changes.py
+++ b/client/ayon_ftrack/launch_hooks/post_ftrack_changes.py
@@ -113,7 +113,7 @@ def ftrack_status_change(self, session, entity, project_name):
[ent["name"] for ent in entity["link"]]
)
- statuses = session.query(f"select id, name from Status").all()
+ statuses = session.query("select id, name from Status").all()
statuses_by_low_name = {
status["name"].lower(): status
for status in statuses
diff --git a/client/ayon_ftrack/plugins/publish/integrate_ftrack_status.py b/client/ayon_ftrack/plugins/publish/integrate_ftrack_status.py
index 984ae5f0..6c850db9 100644
--- a/client/ayon_ftrack/plugins/publish/integrate_ftrack_status.py
+++ b/client/ayon_ftrack/plugins/publish/integrate_ftrack_status.py
@@ -181,7 +181,7 @@ def is_valid_instance(self, context, instance):
task_entity = instance.data.get("ftrackTask")
if not task_entity:
self.log.debug(
- "Skipping instance Does not have filled task".format(
+ "Skipping instance {}. Does not have filled task".format(
instance.data["productName"]))
return False
diff --git a/client/ayon_ftrack/tray/user_server.py b/client/ayon_ftrack/tray/user_server.py
index b0277d9b..d53edc52 100644
--- a/client/ayon_ftrack/tray/user_server.py
+++ b/client/ayon_ftrack/tray/user_server.py
@@ -345,7 +345,7 @@ def run(self):
self._handle_data(connection, data)
- except Exception as exc:
+ except Exception:
self.log.error(
"Event server process failed", exc_info=True
)
diff --git a/services/processor/processor/default_handlers/action_prepare_project.py b/services/processor/processor/default_handlers/action_prepare_project.py
index cadfd5b1..8a8b66e8 100644
--- a/services/processor/processor/default_handlers/action_prepare_project.py
+++ b/services/processor/processor/default_handlers/action_prepare_project.py
@@ -450,7 +450,7 @@ def _get_rename_project_items(
)
if repeated:
intro_message = (
- f"Entered values are not valid.
"
+ "Entered values are not valid.
"
) + intro_message
items = [
diff --git a/services/processor/processor/default_handlers/event_first_version_status.py b/services/processor/processor/default_handlers/event_first_version_status.py
index 500ed426..870358e6 100644
--- a/services/processor/processor/default_handlers/event_first_version_status.py
+++ b/services/processor/processor/default_handlers/event_first_version_status.py
@@ -1,7 +1,5 @@
import collections
-import ayon_api
-
from ftrack_common import BaseEventHandler
diff --git a/services/processor/processor/default_handlers/event_sync_from_ftrack.py b/services/processor/processor/default_handlers/event_sync_from_ftrack.py
index f5d879c7..485c576c 100644
--- a/services/processor/processor/default_handlers/event_sync_from_ftrack.py
+++ b/services/processor/processor/default_handlers/event_sync_from_ftrack.py
@@ -1265,7 +1265,7 @@ def _propagate_task_type_changes(self, task_type_changes):
if entity.task_type == new_type_name:
continue
- if not new_type_name in task_types_names:
+ if new_type_name not in task_types_names:
project_need_update = True
to_change.append((entity, new_type_name))
diff --git a/services/processor/processor/handlers_to_convert/event_sync_to_avalon.py b/services/processor/processor/handlers_to_convert/event_sync_to_avalon.py
index 60fb4bf6..8993ee0d 100644
--- a/services/processor/processor/handlers_to_convert/event_sync_to_avalon.py
+++ b/services/processor/processor/handlers_to_convert/event_sync_to_avalon.py
@@ -1772,7 +1772,6 @@ def process_moved(self):
continue
new_parent_id = ent_info["changes"]["parent_id"]["new"]
- old_parent_id = ent_info["changes"]["parent_id"]["old"]
mongo_id = avalon_ent["_id"]
if self.changeability_by_mongo_id[mongo_id]: