Skip to content

Commit

Permalink
Merge pull request #139 from ynput/enhancement/stricter-ruff
Browse files Browse the repository at this point in the history
Chore: Stricter ruff
  • Loading branch information
iLLiCiTiT authored Sep 18, 2024
2 parents 6266f16 + 17cc666 commit 56d681b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/ayon_ftrack/common/event_handlers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"BaseAction",
"LocalAction",
"ServerAction",
)
)
2 changes: 1 addition & 1 deletion client/ayon_ftrack/event_handlers_user/action_delivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def _get_repre_names(self, project_name, session, entities):

def _get_interest_version_ids(self, project_name, session, entities):
"""
Args:
project_name (str): Project name.
session (ftrack_api.Session): Ftrack session.
Expand Down
2 changes: 1 addition & 1 deletion client/ayon_ftrack/plugins/publish/integrate_ftrack_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _ensure_asset_version_exists(
else:
# Convert '0' version to string `"0"`
# - ftrack handles `0` as empty value
if version == 0:
if version == 0:
version = "0"

new_asset_version_data = {
Expand Down
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ indent-width = 4
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
select = ["E4", "E7", "E9", "F", "W"]
ignore = []

# Allow fix for all enabled rules (when `--fix`) is provided.
Expand Down
2 changes: 1 addition & 1 deletion server/settings/service_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class CreateDailyListsModel(BaseSettingsModel):
title="Create daily lists at",
description="This may take affect on next day",
widget="time",
regex="(?:[01]\d|2[0123]):(?:[012345]\d):(?:[012345]\d)",
regex=r"(?:[01]\d|2[0123]):(?:[012345]\d):(?:[012345]\d)",
section="Automated execution",
scope=["studio"],
)
Expand Down
2 changes: 1 addition & 1 deletion services/leecher/leecher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

__all__ = (
"main",
)
)
2 changes: 1 addition & 1 deletion services/processor/processor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

__all__ = (
"main",
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(self, event_handler, session, event, log):
self._ft_std_cust_attrs = None
self._ft_object_type_name_by_id = None
self._ft_task_type_name_by_id = None

self._created_entity_by_ftrack_id = {}
self._hierarchy_changed_by_ftrack_id = {}
self._remapped_entity_by_ftrack_id = {}
Expand Down

0 comments on commit 56d681b

Please sign in to comment.