Fix flake8

This commit is contained in:
allegroai 2021-08-02 23:00:51 +03:00
parent 071caf5302
commit 27b560bb75
2 changed files with 2 additions and 4 deletions

View File

@ -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")

View File

@ -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