mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Fix flake8
This commit is contained in:
parent
071caf5302
commit
27b560bb75
@ -63,7 +63,7 @@ def get_or_create_project(session, project_name, description=None):
|
||||
|
||||
|
||||
def get_queue_id(session, queue):
|
||||
# type: ('Session', str) -> Optional[str]
|
||||
# type: ('Session', str) -> Optional[str] # noqa: F821
|
||||
if not queue:
|
||||
return None
|
||||
|
||||
@ -80,7 +80,6 @@ def get_queue_id(session, queue):
|
||||
return None
|
||||
|
||||
|
||||
|
||||
# Hack for supporting windows
|
||||
def get_epoch_beginning_of_time(timezone_info=None):
|
||||
return datetime(1970, 1, 1).replace(tzinfo=timezone_info if timezone_info else utc_timezone)
|
||||
@ -162,4 +161,3 @@ def datetime_from_isoformat(o):
|
||||
if isinstance(o, datetime):
|
||||
return o
|
||||
return datetime.strptime(o, "%Y-%m-%dT%H:%M:%S.%f")
|
||||
|
||||
|
@ -25,7 +25,7 @@ import six
|
||||
from pathlib2 import Path
|
||||
|
||||
from .backend_config.defs import get_active_config_file, get_config_file
|
||||
from .backend_api.services import tasks, projects, queues
|
||||
from .backend_api.services import tasks, projects
|
||||
from .backend_api.session.session import (
|
||||
Session, ENV_ACCESS_KEY, ENV_SECRET_KEY, ENV_HOST, ENV_WEB_HOST, ENV_FILES_HOST)
|
||||
from .backend_interface.metrics import Metrics
|
||||
|
Loading…
Reference in New Issue
Block a user