зеркало из
1
0
Форкнуть 0
This commit is contained in:
Troy Dai 2018-04-25 15:11:11 -07:00
Родитель 19ac79f618
Коммит ed5b009c0c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9608535492BEDAC8
5 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -6,7 +6,7 @@ reports=no
# locally-disabled: Warning locally suppressed using disable-msg
# cyclic-import: because of https://github.com/PyCQA/pylint/issues/850
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
disable=missing-docstring
disable=missing-docstring, too-many-arguments
[FORMAT]
max-line-length=120

Просмотреть файл

@ -1,4 +1,4 @@
# pylint: disable=unused-import
from .get_task import get_task
from .get_run import get_run
from .get_runs import get_runs

Просмотреть файл

@ -3,13 +3,13 @@ import logging
import json
from itertools import zip_longest
import colorama
from a01.cli import cmd, arg
from a01.output import output_in_table
from a01.models import TaskCollection
from a01.operations import query_tasks_by_run, query_run
import colorama
@cmd('get run', desc='Retrieve a run')
@arg('run_id', help='The run id.', positional=True)

Просмотреть файл

@ -12,8 +12,8 @@ from a01.output import output_in_table
@arg('me', help='Query runs created by me.')
@arg('last', help='Returns the last NUMBER of records. Default: 20.')
@arg('skip', help='Returns the records after skipping given number of records at the bottom. Default: 0.')
def get_runs(me: bool = False, last: int = 20, skip: int = 0,
owner: str = None) -> None: # pylint: disable=invalid-name
def get_runs(me: bool = False, last: int = 20, skip: int = 0, # pylint: disable=invalid-name
owner: str = None) -> None:
logger = logging.getLogger(__name__)
try:
if me and owner:

Просмотреть файл

@ -1,2 +1,3 @@
# pylint: disable=unused-import
from .query_tasks import query_tasks, query_tasks_by_run
from .query_runs import query_run, query_runs
from .query_runs import query_run, query_runs