Skip to content

Commit

Permalink
various review fixes
Browse files Browse the repository at this point in the history
- minor comment as per
  #2546 (comment)
- revert warning style fix
  #2546 (comment)
- Abstract error consistency
  #2546 (comment)
- minor comment as per
  #2546 (comment)
  • Loading branch information
casperdcl committed Oct 23, 2019
1 parent 614a9b1 commit bfaecf3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dvc/command/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def run(self):


def add_parser(subparsers, parent_parser):
add_help = "Track data files or directories with DVC."
ADD_HELP = "Track data files or directories with DVC."

parser = subparsers.add_parser(
"add",
parents=[parent_parser],
description=append_doc_link(add_help, "add"),
help=add_help,
description=append_doc_link(ADD_HELP, "add"),
help=ADD_HELP,
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion dvc/command/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def default_targets(self):

# Abstract methods that have to be implemented by any inheritance class
def run(self):
raise NotImplementedError("Abstract")
raise NotImplementedError


class CmdBaseNoRepo(CmdBase):
Expand Down
1 change: 1 addition & 0 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def add(
stage.dump()

stages_list += stages
# remove filled bar bit of progress, leaving stats
pbar.bar_format = pbar.BAR_FMT_DEFAULT.replace("|{bar:10}|", " ")

return stages_list
Expand Down

0 comments on commit bfaecf3

Please sign in to comment.