RFC: conform to pylint

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2019-01-16 14:12:19 +02:00
parent 2bcdb0ba54
commit 6fec8b16cd
44 changed files with 2458 additions and 1397 deletions
+24
View File
@@ -17,3 +17,27 @@ class CmdInit(object):
logger.error('failed to initiate dvc')
return 1
return 0
def add_parser(subparsers, parent_parser):
"""Setup parser for `dvc init`."""
INIT_HELP = 'Initialize dvc over a directory ' \
'(should already be a git dir).'
init_parser = subparsers.add_parser(
'init',
parents=[parent_parser],
description=INIT_HELP,
help=INIT_HELP)
init_parser.add_argument(
'--no-scm',
action='store_true',
default=False,
help="Initiate dvc in directory that is "
"not tracked by any scm tool (e.g. git).")
init_parser.add_argument(
'-f',
'--force',
action='store_true',
default=False,
help="Overwrite '.dvc' if it exists. Will remove all local cache.")
init_parser.set_defaults(func=CmdInit)