Skip to content

Commit

Permalink
🐶 small style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Aug 7, 2024
1 parent 50b1484 commit ad07f3e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions client/version_control/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
class VersionControlAddon(AYONAddon, ITrayService, IPluginPaths):
# _icon_name = "mdi.jira"
# _icon_scale = 1.3
webserver = None
active_version_control_system = None

# Properties:
@property
Expand All @@ -34,7 +36,7 @@ def initialize(self, settings):
assert self.name in settings, (
"{} not found in settings - make sure they are defined in the defaults".format(self.name)
)
vc_settings = settings[self.name] # type: dict[str, Any]
vc_settings = settings[self.name] # type: dict[str, Any]
enabled = vc_settings["enabled"] # type: bool
active_version_control_system = vc_settings["active_version_control_system"] # type: str
self.active_version_control_system = active_version_control_system
Expand All @@ -60,14 +62,13 @@ def get_connection_info(self, project_name, project_settings=None):
if workspace_dir:
workspace_dir = os.path.normpath(workspace_dir)

conn_info = {}
conn_info["host"] = version_settings["host_name"]
conn_info["port"] = version_settings["port"]
conn_info["username"] = local_setting["username"]
conn_info["password"] = local_setting["password"]
conn_info["workspace_dir"] = workspace_dir

return conn_info
return {
"host": version_settings["host_name"],
"port": version_settings["port"],
"username": local_setting["username"],
"password": local_setting["password"],
"workspace_dir": workspace_dir
}

def sync_to_latest(self, conn_info):
from version_control.rest.perforce.rest_stub import \
Expand Down

0 comments on commit ad07f3e

Please sign in to comment.