mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix linter issues
This commit is contained in:
parent
028a835676
commit
cc875f0fbe
@ -20,6 +20,7 @@ except ImportError as err:
|
||||
"install with: pip install boto3"
|
||||
) from err
|
||||
|
||||
|
||||
@attr.s
|
||||
class AWSDriver(CloudDriver):
|
||||
"""AWS Driver"""
|
||||
|
@ -3,7 +3,6 @@ import itertools
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import warnings
|
||||
from copy import copy
|
||||
@ -34,12 +33,12 @@ from ...backend_interface.task.development.worker import DevWorker
|
||||
from ...backend_interface.session import SendError
|
||||
from ...backend_api import Session
|
||||
from ...backend_api.services import tasks, models, events, projects
|
||||
from ...backend_api.session.defs import ENV_OFFLINE_MODE
|
||||
# from ...backend_api.session.defs import ENV_OFFLINE_MODE
|
||||
from ...utilities.pyhocon import ConfigTree, ConfigFactory
|
||||
from ...utilities.config import config_dict_to_text, text_to_config_dict
|
||||
from ...errors import ArtifactUriDeleteError
|
||||
|
||||
from ..base import IdObjectBase, InterfaceBase
|
||||
from ..base import IdObjectBase # , InterfaceBase
|
||||
from ..metrics import Metrics, Reporter
|
||||
from ..model import Model
|
||||
from ..setupuploadmixin import SetupUploadMixin
|
||||
@ -376,7 +375,6 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
self._edit(type=tasks.TaskTypeEnum(task_type))
|
||||
return id
|
||||
|
||||
|
||||
def _set_storage_uri(self, value):
|
||||
value = value.rstrip('/') if value else None
|
||||
self._storage_uri = StorageHelper.conform_url(value)
|
||||
|
@ -70,7 +70,7 @@ class PatchGradio:
|
||||
# noinspection PyBroadException
|
||||
try:
|
||||
return original_fn(*args, **kwargs)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
del kwargs["root_path"]
|
||||
return original_fn(*args, **kwargs)
|
||||
|
||||
|
@ -116,6 +116,7 @@ class _Driver(object):
|
||||
cls._file_server_hosts = hosts
|
||||
return cls._file_server_hosts
|
||||
|
||||
|
||||
class _HttpDriver(_Driver):
|
||||
""" LibCloud http/https adapter (simple, enough for now) """
|
||||
|
||||
@ -1797,7 +1798,6 @@ class _FileStorageDriver(_Driver):
|
||||
return os.path.isfile(object_name)
|
||||
|
||||
|
||||
|
||||
class StorageHelper(object):
|
||||
""" Storage helper.
|
||||
Used by the entire system to download/upload files.
|
||||
@ -2976,7 +2976,6 @@ class StorageHelper(object):
|
||||
)
|
||||
|
||||
|
||||
|
||||
def normalize_local_path(local_path):
|
||||
"""
|
||||
Get a normalized local path
|
||||
|
Loading…
Reference in New Issue
Block a user